Java Reference
In-Depth Information
elements CDATA #IMPLIED
containerViews CDATA #IMPLIED
semanticHints CDATA #IMPLIED>
This element defines a context supported by the view provider that contains
values for the different hint parameters needed to create views.
viewClass —A fully qualified name of a view class from a list of different
kinds of views created by the view service that the provider can accept in this
context. This field is an enumeration consisting of the qualified class names for
Node , Diagram , and Edge notation elements.
elements —A comma-separated list of object IDs (from the provider XML
definition) that represents elements that this provider can accept in this context.
containerViews —A comma-separated list of object IDs (from the provider
XML definition) that represents container views that this provider can accept in
this context.
semanticHints —A comma-separated list of Strings that represents seman-
tic hints that this provider can accept in this context.
Examples:
Following is an example view provider extension-point contribution, as gen-
erated using the GMF tooling:
<extension-point="org.eclipse.gmf.runtime.diagram.core.viewProviders">
<viewProvider
class="org.eclipse.mindmap.diagram.providers.MindmapViewProvider">
<Priority name="Lowest"/>
<context viewClass="org.eclipse.gmf.runtime.notation.Diagram"
semanticHints="mindmap"/>
<context viewClass="org.eclipse.gmf.runtime.notation.Node"
semanticHints=""/>
<context viewClass="org.eclipse.gmf.runtime.notation.Edge"
semanticHints=""/>
</viewProvider>
</extension>
API information:
The class AbstractViewProvider (though technically not abstract) is pro-
vided as a base implementation that implements the required org.eclipse.
gmf.runtime.diagram.core.providers.IViewProvider interface.
Notes:
The generated diagrams that the GMF tooling provides contribute to the
view provider's extension-point.
By default, GMF diagrams provide geoshape elements and standard note,
text, and description information. This functionality is provided by the internal
Search WWH ::




Custom Search