Grouping for function contribution

com.ibm.etools.emf.workbench.group

6.0

A functionGroup provides a grouping of related function that can be contributed to the tools. For example, a third party component may want to contribute actions, editor pages, edit model resources, and many other functions specific to a given product. By associating all these functions with a group id, a mechanism is exposed for users to selectively enable and disable baskets of function. Extension points that allow for a "groupID" attribute generally will hide those functions when the group id is disabled.

<!ELEMENT extension (functionGroup+ | functionGroupPatternBinding+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT functionGroup EMPTY>

<!ATTLIST functionGroup

functionGroupID      CDATA #REQUIRED

name                 CDATA #REQUIRED

description          CDATA #REQUIRED

icon                 CDATA #IMPLIED

url                  CDATA #IMPLIED

priority             CDATA #REQUIRED

initializerClassName CDATA #REQUIRED>

Extension point definition for a group.



<!ELEMENT functionGroupPatternBinding EMPTY>

<!ATTLIST functionGroupPatternBinding

functionGroupID CDATA #REQUIRED

pattern         CDATA #REQUIRED>

This element allows one to bind function groups to patterns.



   
   <extension
         point="com.ibm.wtp.common.functionGroup">
      <functionGroup
            name="Acme Co. Function Extension"
            functionGroupID="com.acme.acmepro"
            description="The AcmePro Extensions add integration to the Acme Web Server."
            enabledByDefault="true"
            icon="..."
            url="http://www.acme.com/"
         />
   </extension>

WTP Function Groups can be referenced through com.ibm.wtp.common.group.WTPFunctionGroupRegistry.