Java Reference
In-Depth Information
Description:
This extension-point configures providers for the
Global
ActionHandlerService
(
org.eclipse.gmf.runtime.common.ui.serv-
ices.action.global.GlobalActionHandlerService
).
This service provides an extensible way to handle commonly used (global)
actions in different views and editors. These global actions might appear in a
view part context menu or might be predefined retargetable actions. The service
allows different handlers to be used, depending on the nature of the element(s)
selected in the workbench part. Each
GlobalActionHandlerProvider
regis-
ters itself for actions against a specific element type within a view part.
Configuration markup:
<!ELEMENT extension (GlobalActionHandlerProvider)+>
<!ELEMENT GlobalActionHandlerProvider (Priority , Policy? , ViewId+)>
<!ATTLIST GlobalActionHandlerProvider
id CDATA #REQUIRED
class CDATA #REQUIRED>
This element describes a
GlobalActionHandlerProvider
that will con-
tribute handlers to a given view or views for one or more retargetable actions.
id
—A unique identifier used to reference this provider.
class
—The name of a fully qualified class that implements the
org.
eclipse.gmf.runtime.common.ui.services.action.global.IGlobal
ActionHandlerProvider
and
org.eclipse.gmf.runtime.common.core.
service.IProvider
interfaces.
<!ELEMENT Priority EMPTY>
<!ATTLIST Priority
name (Lowest|Low|Medium|High|Highest) >
This element specifies the priority that this provider has relative to other
GlobalActionHandlerProvider
s that are registered to handle the same
global action for the kind of element in the same view. When such a conflict
occurs, the provider with the highest priority is selected to provide the
Global
ActionHandler
.
name
—The name of the provider priority—
Lowest
,
Low
,
Medium
,
High
, or
Highest
.
<!ELEMENT ViewId (ElementType+)>
<!ATTLIST ViewId
id CDATA #REQUIRED>
Search WWH ::
Custom Search