Java Reference
In-Depth Information
This element specifies a custom contribution to a workbench part's pop-up
menu.
id —The ID of the pop-up custom contribution. The ID is unique within a
provider.
path —The contribution path of this custom contribution within the pop-up.
The path is a / -delimited String in the following format:
/<submenu_id/>*<group_id|contribution_id>
The path must start with a / , indicating the root of the contribution man-
ager. Following that could be submenu_id path that is also / -delimited. The
final token in the path is either a group_id or a contribution_id .
If the last token is a group, the contribution is appended to the end of the
group. Otherwise, the contribution is inserted after the given contribution_id .
If the field is omitted, the contribution does not take place with the pop-up menu.
<!ELEMENT popupStructuredContributionCriteria (method* ,
staticMethod*)>
<!ATTLIST popupStructuredContributionCriteria
objectCount CDATA #IMPLIED
objectClass CDATA #IMPLIED
policyClass CDATA #IMPLIED>
This element defines a structured selection contribution criteria for a work-
bench part's pop-up menu. The criteria can have an optional set of methods to
call on the “selected objects.”
objectCount —The number of objects in the selection that this contribution
applies to.
objectClass —The fully qualified name of a class/interface that is assigna-
ble or adaptable from the classes of objects in the selection. The name could be
followed (between parentheses) by the ID of a plug-in whose classloader can load
that class. This is the final syntax:
className <(plugin id)> ?
policyClass —The fully qualified name of a contribution policy class (that
usually resides in a different plug-in/fragment that is assumed to be loaded), to
determine whether this contribution should be considered. The class must imple-
ment the IPopupMenuContributionPolicy interface.
Search WWH ::




Custom Search