Interface ISources
A source is type of event change that can occur within the workbench. For example, the active workbench window can change, so it is considered a source. Workbench services can track changes to these sources, and thereby try to resolve conflicts between a variety of possible options. This is most commonly used for things like handlers and contexts.
 This interface defines the source that are known to the workbench at
 compile-time. These sources can be combined in a bit-wise fashion. So, for
 example, a ACTIVE_PART | ACTIVE_CONTEXT source includes change
 to both the active context and the active part.
 
 The values assigned to each source indicates its relative priority. The
 higher the value, the more priority the source is given in resolving
 conflicts. Another way to look at this is that the higher the value, the more
 "local" the source is to what the user is currently doing. This is similar
 to, but distinct from the concept of components. The nesting support provided
 by components represent only one source (ACTIVE_SITE) that the
 workbench understands.
 
 Note that for backward compatibility, we must reserve the lowest three bits
 for Priority instances using the old
 HandlerSubmission mechanism. This mechanism was used in Eclipse
 3.0.
 
Note in 3.3:
Currently, source variables are not extensible by user plugins, and the number of bits available for resolving conflicts is limited. When the variable sources become user extensible a new conflict resolution mechanism will be implemented.
- Since:
- 3.1
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe priority given when the source includes a particular action set.static final StringThe variable name for the active action sets.static final intThe priority given when the source includes a particular context.static final StringThe variable name for the active contexts.static final intThe priority given when the source includes the current selection.static final StringThe variable name for the active selection.static final intThe priority given when the source includes the active editor part.static final intThe priority given when the source includes the active editor identifier.static final StringThe variable name for the active editor identifier.static final StringThe editor input of the currently active editor.static final StringThe variable name for the active editor part.static final StringThe variable name for the active focus Control id, when provided by the IFocusService.static final StringThe variable name for the active focus Control, when provided by the IFocusService.static final intThe priority given when the source includes the current menu.static final StringThe variable name for the local editor input which is sometimes available while a context menu is visible.static final StringThe variable name for the active menu.static final StringThe variable name for the local selection, available while a context menu is visible.static final intThe priority given when the source includes the active part.static final intThe priority given when the source includes the active part id.static final StringThe variable name for the active part id.static final StringThe variable name for the active part.static final intThe priority given when the source includes the currently active shell.static final StringThe variable name for the active shell.static final intThe priority given when the source includes the active workbench site.static final StringThe variable name for the active workbench site.static final intThe priority given when the source includes the currently active workbench window.static final StringThe variable name for the current perspective of the active workbench window.static final StringThe variable name for the coolbar visibility state of the active workbench window.static final StringThe variable name for the perspective bar visibility state of the active workbench window.static final StringThe variable name for the active workbench window.static final intThe priority given when the source includes the currently active workbench window shell.static final StringThe variable name for the active workbench window shell.static final intThe priority given when the source includes subordinate properties of the currently active workbench window.static final intThe priority given when the activation is defined by a handler submission with a legacy priority.static final intThe priority given when the activation is defined by a handler submission with a low priority.static final intThe priority given when the activation is defined by a handler submission with a medium priority.static final StringThe variable for the showIn input.static final StringThe variable for the showIn selection.static final intThe priority given to default handlers and handlers that are active across the entire workbench.
- 
Field Details- 
WORKBENCHstatic final int WORKBENCHThe priority given to default handlers and handlers that are active across the entire workbench.- See Also:
 
- 
LEGACY_LEGACYstatic final int LEGACY_LEGACYThe priority given when the activation is defined by a handler submission with a legacy priority.- See Also:
 
- 
LEGACY_LOWstatic final int LEGACY_LOWThe priority given when the activation is defined by a handler submission with a low priority.- See Also:
 
- 
LEGACY_MEDIUMstatic final int LEGACY_MEDIUMThe priority given when the activation is defined by a handler submission with a medium priority.- See Also:
 
- 
ACTIVE_CONTEXTstatic final int ACTIVE_CONTEXTThe priority given when the source includes a particular context.- See Also:
 
- 
ACTIVE_CONTEXT_NAMEThe variable name for the active contexts. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_ACTION_SETSstatic final int ACTIVE_ACTION_SETSThe priority given when the source includes a particular action set.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_ACTION_SETS_NAMEThe variable name for the active action sets. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_SHELLstatic final int ACTIVE_SHELLThe priority given when the source includes the currently active shell.- See Also:
 
- 
ACTIVE_SHELL_NAMEThe variable name for the active shell. This is for use with theISourceProviderandIEvaluationContext.- See Also:
 
- 
ACTIVE_WORKBENCH_WINDOW_SHELLstatic final int ACTIVE_WORKBENCH_WINDOW_SHELLThe priority given when the source includes the currently active workbench window shell.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_WORKBENCH_WINDOW_SHELL_NAMEThe variable name for the active workbench window shell. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_WORKBENCH_WINDOWstatic final int ACTIVE_WORKBENCH_WINDOWThe priority given when the source includes the currently active workbench window.- See Also:
 
- 
ACTIVE_WORKBENCH_WINDOW_NAMEThe variable name for the active workbench window. This is for use with theISourceProviderandIEvaluationContext.- See Also:
 
- 
ACTIVE_WORKBENCH_WINDOW_SUBORDINATEstatic final int ACTIVE_WORKBENCH_WINDOW_SUBORDINATEThe priority given when the source includes subordinate properties of the currently active workbench window.- Since:
- 3.3
- See Also:
 
- 
ACTIVE_WORKBENCH_WINDOW_IS_COOLBAR_VISIBLE_NAMEThe variable name for the coolbar visibility state of the active workbench window. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.3
- See Also:
 
- 
ACTIVE_WORKBENCH_WINDOW_IS_PERSPECTIVEBAR_VISIBLE_NAMEThe variable name for the perspective bar visibility state of the active workbench window. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.3
- See Also:
 
- 
ACTIVE_WORKBENCH_WINDOW_ACTIVE_PERSPECTIVE_NAMEThe variable name for the current perspective of the active workbench window. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.4
- See Also:
 
- 
ACTIVE_EDITORstatic final int ACTIVE_EDITORThe priority given when the source includes the active editor part.- See Also:
 
- 
ACTIVE_EDITOR_NAMEThe variable name for the active editor part. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_EDITOR_INPUT_NAMEThe editor input of the currently active editor.- Since:
- 3.5
- See Also:
 
- 
ACTIVE_EDITOR_IDstatic final int ACTIVE_EDITOR_IDThe priority given when the source includes the active editor identifier.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_EDITOR_ID_NAMEThe variable name for the active editor identifier. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_PARTstatic final int ACTIVE_PARTThe priority given when the source includes the active part.- See Also:
 
- 
ACTIVE_PART_NAMEThe variable name for the active part. This is for use with theISourceProviderandIEvaluationContext.- See Also:
 
- 
ACTIVE_PART_IDstatic final int ACTIVE_PART_IDThe priority given when the source includes the active part id.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_PART_ID_NAMEThe variable name for the active part id. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_SITEstatic final int ACTIVE_SITEThe priority given when the source includes the active workbench site. In the case of nesting components, one should be careful to only activate the most nested component.- See Also:
 
- 
ACTIVE_SITE_NAMEThe variable name for the active workbench site. This is for use with theISourceProviderandIEvaluationContext.- See Also:
 
- 
SHOW_IN_SELECTIONThe variable for the showIn selection. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.4
- See Also:
 
- 
SHOW_IN_INPUTThe variable for the showIn input. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.4
- See Also:
 
- 
ACTIVE_CURRENT_SELECTIONstatic final int ACTIVE_CURRENT_SELECTIONThe priority given when the source includes the current selection.- See Also:
 
- 
ACTIVE_CURRENT_SELECTION_NAMEThe variable name for the active selection. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_MENUstatic final int ACTIVE_MENUThe priority given when the source includes the current menu.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_MENU_NAMEThe variable name for the active menu. This is for use with theISourceProviderandIEvaluationContext.- Since:
- 3.2
- See Also:
 
- 
ACTIVE_MENU_SELECTION_NAMEThe variable name for the local selection, available while a context menu is visible.- Since:
- 3.3
- See Also:
 
- 
ACTIVE_MENU_EDITOR_INPUT_NAMEThe variable name for the local editor input which is sometimes available while a context menu is visible.- Since:
- 3.3
- See Also:
 
- 
ACTIVE_FOCUS_CONTROL_NAMEThe variable name for the active focus Control, when provided by the IFocusService.- Since:
- 3.3
- See Also:
 
- 
ACTIVE_FOCUS_CONTROL_ID_NAMEThe variable name for the active focus Control id, when provided by the IFocusService.- Since:
- 3.3
- See Also:
 
 
-