Java Reference
In-Depth Information
class
—The fully qualified name of a class/interface that is assignable from,
or adaptable to, the object. The name can be followed (between parentheses) 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
views CDATA #IMPLIED
providesRootEditPart (true | false) "false">
This element defines a context supported by the
EditPart
provider.
views
—A comma-separated list of view object IDs (from the provider XML
definition) that this provider supports in this context.1
providesRootEditPart
—
true
or
false
for whether this context repre-
sents the root
EditPart
.
Examples:
Following is an example
EditPart
provider extension-point contribution
that the GMF tooling provides in generated diagrams:
<extension
point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders">
<editpartProvider
class="org.eclipse.mindmap.diagram.providers.MindmapEditPartProvider">
<Priority name="Lowest"/>
</editpartProvider>
</extension>
API information:
The
EditPart
provider class that should implement the interface
org.eclipse.gmf.runtime.diagram.ui.internal.services.
editpart.IEditPartProvider
. Note that this interface is in an internal
package namespace, meaning that it is not yet public API. An alternative is to
extend the public
AbstractEditPartProvider
, found in the package
org.
eclipse.gmf.runtime.diagram.ui.services.editpart
.
Another internal class provided for support of rendered images is
DiagramUIRenderEditPartProvider
, which is found in the package
org.eclipse.gmf.runtime.diagram.ui.render.internal.providers
.
Notes:
As was the case with the View Service, two providers for the
EditPartService
are contributed by the geoshapes and the general diagram
Search WWH ::
Custom Search