Java Reference
In-Depth Information
class
—The
class
attribute must contain a fully qualified name of the
PropertiesProvider class. The PropertiesProvider must implement the
org.eclipse.gmf.runtime.common.ui.services.properties.IPrope
rtyProvider
interface.
verifyPluginLoaded
—The
verifyPluginLoaded
attribute is used
while testing the applicability of the given provider. If set to
true
, the service
verifies that the provider's plug-in is loaded, before running the
IProp-
ertyProvider.provides()
test. If the declaring plug-in is not loaded,
IPropertyProvider.provides()
is not called and the provider then is con-
sidered not applicable. If the declaring plug-in is loaded, the service runs
IPropertyProvider.provides()
to determine whether the provider is appli-
cable. When the
verifyPluginLoaded
attribute is set to
false
, verification is
not performed and
IPropertyProvider.provides()
is called regardless of
the plug-in being loaded.
<!ELEMENT Priority EMPTY>
<!ATTLIST Priority
name (Lowest|Low|Medium|High|Highest) >
The
Priority
element specifies the priority of the provider from
Highest
to
Lowest
. The providers are allowed to contribute to the property source in
order of their priorities, from
Highest
to
Lowest
. This ensures the desired
order of contribution and helps to exclude duplicate properties that were already
contributed by others. For example, a provider with
Lowest
priority, when exe-
cuted, can check whether there are any properties already contributed by any
other providers. If none have been contributed, the provider might want to con-
tribute; if some have been contributed, the provide might want to withdraw from
contribution.
name
—Enumeration with the following five values:
Highest
,
High
,
Medium
,
Low
, and
Lowest
.
Examples:
The following is an example of a provider extension:
<extension
point="org.eclipse.gmf.runtime.common.ui.services.properties.
propertiesProviders">
<PropertiesProvider
verifyPluginLoaded="false"
class="com.examples.MyPropertiesProvider">
<Priority name="Medium"/>
</PropertiesProvider>
</extension>
Search WWH ::
Custom Search