Java Reference
In-Depth Information
by the ID of a plug-in whose classloader can load that class. The final syntax is
className(plugin id).
<!ELEMENT context EMPTY>
<!ATTLIST context
elements CDATA #IMPLIED>
This element defines a context that the icon provider supports.
elements —A comma-separated list of element object IDs (from the
provider XML definition) that this provider supports in this context.
Examples:
Following is an example of an icon provider extension, as contributed by
generated code using the GMF tooling:
<extension
point="org.eclipse.gmf.runtime.common.ui.services.iconProviders">
<IconProvider class=
"org.eclipse.requirements.diagram.providers.RequirementsIconProvider">
<Priority name="Low"/>
</IconProvider>
</extension>
This is the Geoshapes contribution:
<extension
id="iconProviders"
name="%ext.iconProviders"
point="org.eclipse.gmf.runtime.common.ui.services.iconProviders">
<IconProvider class=
"org.eclipse.gmf.runtime.diagram.ui.geoshapes.internal.providers.
GeoShapeIconProvider">
<Priority name="Medium"/>
<object class="org.eclipse.gmf.runtime.notation.View
(org.eclipse.gmf.runtime.notation)" id="GeoShape">
<method name="getType()"
value="oval,triangle,rectangle,shadowRectangle,
rectangle3D,roundRectangle,hexagon,octagon,
pentagon,diamond,cylinder,line"/>
</object>
<context elements="GeoShape"/>
</IconProvider>
</extension>
Search WWH ::




Custom Search