public class RefactoringSynchronizationActionProvider extends SynchronizationActionProvider
This action provider contributes an action for refactoring history objects.
Additionally, existing command handlers for the
Mark As Merged and
Overwrite actions are
wrapped and automatically disabled for refactoring history objects.
Note: this class is intended to be extended by clients who need refactoring
support in a team synchronization viewer. It needs to be be registered with
org.eclipse.ui.navigator.viewer extension points in order to
participate in the team synchronization viewers.
|Constructor and Description|
|Modifier and Type||Method and Description|
Adds the applicable actions to a context menu, based on the state of the
Method called during action provider initialization.
Method called from
dispose, fillActionBars, getExtensionSite, getExtensionStateModel, getSynchronizationContext, getSynchronizePageConfiguration, init, registerHandler, setContext, updateActionBars
filterAction, getActionSite, restoreState, saveState
public void fillContextMenu(IMenuManager menu)
The default implementation does nothing. Subclasses may override or extend this method.
protected void initialize()
SynchronizationActionProvider.init(ICommonActionExtensionSite)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.
protected void initializeOpenActions()
SynchronizationActionProvider.initialize()to initialize the Open/Open With actions. This method will add an Open item and Open With menu for single selections that adapt to IResource. Subclasses may override. They may still call this method, in which case they only need to handle providing open for non-files. Otherwise, if they do not call this method, they must provide all non-compare related open items.
Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.