Java Reference
In-Depth Information
name
—The name of the marker type that the provider understands.
<!ELEMENT Policy EMPTY>
<!ATTLIST Policy
class CDATA #REQUIRED>
class
—The provider policy class. Provider policies can optionally be speci-
fied to determine whether the providers support a given operation.
Examples:
Following is an example of a marker navigation provider extension, as con-
tributed by the GMF tooling when audits or metrics are defined for a diagram:
<extension-point=
"org.eclipse.gmf.runtime.common.ui.services.markerNavigationProviders">
<MarkerNavigationProvider
class="org.eclipse.mindmap.diagram.providers.
MindmapMarkerNavigationProvider">
<MarkerType name="org.eclipse.mindmap.diagram.diagnostic"/>
<Priority name="Lowest"/>
</MarkerNavigationProvider>
</extension>
API information:
The value of the class attribute must represent a subclass of
org.
eclipse.gmf.runtime.common.core.service.AbstractProvider
that
implements
org.eclipse.gmf.runtime.common.ui.services.marker.
IMarkerNavigationProvider
. For convenience,
org.eclipse.gmf.
runtime.common.ui.services.marker.IMarkerNavigationProvider.
AbstractMarkerNavigationProvider
is provided to be subclassed.
10.4.8 ParserService
When editing Strings on a diagram, the
ParserService
is responsible for
returning an
IParserProvider
implementation that can handle Strings for the
passed
IAdaptable
element. The provided parser itself must implement the
IParser
interface, shown in Figure 10-32. Section 4.6.7, “Custom Parsers,”
includes an example of a custom parser that was contributed to the color mod-
eling diagram.
Search WWH ::
Custom Search