|
Eclipse Platform Release 3.2 |
|||||||||||
| 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.ui.navigator.CommonActionProvider
org.eclipse.team.ui.mapping.SynchronizationActionProvider
An action group that can be used by models to contribute actions
to a team synchronization viewer. Subclases should override the
initialize() method in order to register handlers for the
following merge actions if they want cutom merge behavior:
fillActionBars(IActionBars) method.
This class may be subclasses by clients
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/Team team.
MergeActionHandler| Field Summary | |
|---|---|
static String |
MARK_AS_MERGE_ACTION_ID
Action id constant for the mark-as-merge action. |
static String |
MERGE_ACTION_ID
Action id constant for the merge action. |
static String |
OVERWRITE_ACTION_ID
Action id constant for the merge action. |
| Constructor Summary | |
|---|---|
SynchronizationActionProvider()
|
|
| Method Summary | |
|---|---|
void |
dispose()
This method is called by the user of an action group to signal that the group is no longer needed. |
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.
|
CommonActionProviderConfig |
getCommonConfiguration()
Return the configuration for the common viewer. |
protected IExtensionStateModel |
getExtensionStateModel()
Return the extension state model for the content provider associated with action provider. |
protected ISynchronizationContext |
getSynchronizationContext()
Return the synchronization context to which the actions of this provider apply. |
protected ISynchronizePageConfiguration |
getSynchronizePageConfiguration()
Return the configuration from the synchronize page that contains the common viewer. |
void |
init(CommonActionProviderConfig aConfig)
Initialize the current ICommonActionProvider with the supplied information. |
protected void |
initialize()
Method called during action provider initialization. |
protected void |
registerHandler(String actionId,
IHandler handler)
Register the handler as the handler for the given action id when a merge action is performed on elements that match this groups enablement. |
| Methods inherited from class org.eclipse.ui.navigator.CommonActionProvider |
|---|
restoreState, saveState |
| 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_ID
registerHandler(String, IHandler),
Constant Field Valuespublic static final String OVERWRITE_ACTION_ID
registerHandler(String, IHandler),
Constant Field Valuespublic static final String MARK_AS_MERGE_ACTION_ID
registerHandler(String, IHandler),
Constant Field Values| Constructor Detail |
public SynchronizationActionProvider()
| Method Detail |
public final void init(CommonActionProviderConfig aConfig)
CommonActionProviderInitialize the current ICommonActionProvider with the supplied information.
init() is guaranteed to be called before any other method of the ActionGroup super class.
init in class CommonActionProvideraConfig - The configuration information for the instantiated Common
Action Provider.protected void initialize()
init(CommonActionProviderConfig)
after after the configuration has been recorded. Subclasses
may override. Subclasses that want to provide there own merge actions
handlers can register them in this method.
registerHandler(String, IHandler),
MergeActionHandlerpublic final CommonActionProviderConfig getCommonConfiguration()
protected final ISynchronizePageConfiguration getSynchronizePageConfiguration()
protected final IExtensionStateModel getExtensionStateModel()
protected final ISynchronizationContext getSynchronizationContext()
protected void registerHandler(String actionId,
IHandler handler)
actionId - the id of the merge actionhandler - the handler for elements of the model that provided this grouppublic void fillContextMenu(IMenuManager menu)
ActionGroupActionContext.
The default implementation does nothing. Subclasses may override or extend this method.
fillContextMenu in class ActionGroupmenu - the context menu managerpublic void fillActionBars(IActionBars actionBars)
ActionGroupThe default implementation does nothing. Subclasses may override or extend this method.
fillActionBars in class ActionGroupactionBars - the part's action barspublic void dispose()
ActionGroup
The default implementation calls setContext(null).
Subclasses may extend this method.
dispose in class ActionGroup
|
Eclipse Platform Release 3.2 |
|||||||||||
| 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, 2005. All rights reserved.