|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.actions.ActionGroup
org.eclipse.team.ui.synchronize.SynchronizePageActionGroup
org.eclipse.team.ui.synchronize.ModelSynchronizeParticipantActionGroup
Action group that contributes the merge actions to the model synchronize participant. The groups adds the following:
Subclasses can configure the label and icons used for the merge actions
by overriding configureMergeAction(String, Action)
and can
configure where in the context menu the actions appear by overriding
addToContextMenu(String, Action, IMenuManager)
.
Field Summary | |
---|---|
static String |
MERGE_ACTION_GROUP
The id of the merge action group that determines where the merge actions (e.g. merge and overwrite) appear in the context menu or toolbar. |
protected static String |
MERGE_ALL_ACTION_ID
The id used to identify the Merge All action. |
static String |
OTHER_ACTION_GROUP
The id of the action group that determines where the other actions (e.g. mark-as-mered) appear in the context menu. |
Constructor Summary | |
---|---|
ModelSynchronizeParticipantActionGroup()
Create a merge action group. |
Method Summary | |
---|---|
protected void |
addToContextMenu(String mergeActionId,
Action action,
IMenuManager manager)
Add the merge action to the context menu manager. |
protected void |
configureMergeAction(String mergeActionId,
Action action)
Configure the merge action to have appropriate label, image, etc. |
void |
dispose()
Dispose of the action group. |
void |
fillActionBars(IActionBars actionBars)
Adds the applicable actions to a part's action bars, including setting any global action handlers. |
void |
fillContextMenu(IMenuManager menu)
Adds the applicable actions to a context menu, based on the state of the ActionContext .
|
void |
initialize(ISynchronizePageConfiguration configuration)
Initialize the actions of this contribution. |
Methods inherited from class org.eclipse.team.ui.synchronize.SynchronizePageActionGroup |
---|
appendToGroup, appendToGroup, appendToGroup, appendToGroup, findGroup, getConfiguration, getVisibleRootsSelectionProvider, modelChanged |
Methods inherited from class org.eclipse.ui.actions.ActionGroup |
---|
getContext, setContext, updateActionBars |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String MERGE_ACTION_GROUP
public static final String OTHER_ACTION_GROUP
protected static final String MERGE_ALL_ACTION_ID
Constructor Detail |
public ModelSynchronizeParticipantActionGroup()
Method Detail |
public void initialize(ISynchronizePageConfiguration configuration)
SynchronizePageActionGroup
filleContextMenu
or
setActionBars
but after the control for the page has been
created. As a result of this, the site of the configuration can be
accessed. Subclasses may override this method but must invoke the
overridden method.
initialize
in class SynchronizePageActionGroup
configuration
- the configuration for the part to which the
contribution is associatedpublic void fillActionBars(IActionBars actionBars)
ActionGroup
The default implementation does nothing. Subclasses may override or extend this method.
fillActionBars
in class SynchronizePageActionGroup
public void fillContextMenu(IMenuManager menu)
ActionGroup
ActionContext
.
The default implementation does nothing. Subclasses may override or extend this method.
fillContextMenu
in class SynchronizePageActionGroup
protected void configureMergeAction(String mergeActionId, Action action)
mergeActionId
- the id of the merge action (one of
SynchronizationActionProvider.MERGE_ACTION_ID
,
SynchronizationActionProvider.OVERWRITE_ACTION_ID
or
SynchronizationActionProvider.MARK_AS_MERGE_ACTION_ID
)action
- the action for the given idprotected void addToContextMenu(String mergeActionId, Action action, IMenuManager manager)
mergeActionId
- the id of the merge action (one of
SynchronizationActionProvider.MERGE_ACTION_ID
,
SynchronizationActionProvider.OVERWRITE_ACTION_ID
or
SynchronizationActionProvider.MARK_AS_MERGE_ACTION_ID
)action
- the action for the given idmanager
- the context menu managerpublic void dispose()
SynchronizePageActionGroup
dispose
in class SynchronizePageActionGroup
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.