Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ltk.ui.refactoring.model
Class RefactoringSynchronizationActionProvider

java.lang.Object
  extended by 

org.eclipse.ui.actions.ActionGroup
      extended by 

org.eclipse.ui.navigator.CommonActionProvider
          extended by 

org.eclipse.team.ui.mapping.SynchronizationActionProvider
              extended by 
org.eclipse.ltk.ui.refactoring.model.RefactoringSynchronizationActionProvider
All Implemented Interfaces:
IMementoAware

public class RefactoringSynchronizationActionProvider
extends SynchronizationActionProvider

Refactoring-aware synchronization action provider which contributes an action to accept pending refactorings during team synchronization.

This action provider contributes an action for refactoring history objects. Additionally, existing command handlers for the Merge, 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 the org.eclipse.ui.navigator.navigatorContent or org.eclipse.ui.navigator.viewer extension points in order to participate in the team synchronization viewers.

Since:
3.2
See Also:
SynchronizationActionProvider

Field Summary
 
Fields inherited from class org.eclipse.team.ui.mapping. SynchronizationActionProvider
MARK_AS_MERGE_ACTION_ID, MERGE_ACTION_ID, OVERWRITE_ACTION_ID
 
Constructor Summary
RefactoringSynchronizationActionProvider ()
           
 
Method Summary
 void fillContextMenu ( IMenuManager menu)
          Adds the applicable actions to a context menu, based on the state of the ActionContext.
protected  void initialize ()
          Method called during action provider initialization.
protected  void initializeOpenActions ()
          Method called from SynchronizationActionProvider.initialize() to initialize the Open/Open With actions.
 
Methods inherited from class org.eclipse.team.ui.mapping. SynchronizationActionProvider
dispose, fillActionBars, getExtensionSite, getExtensionStateModel, getSynchronizationContext, getSynchronizePageConfiguration, init, registerHandler, setContext, updateActionBars
 
Methods inherited from class org.eclipse.ui.navigator. CommonActionProvider
filterAction, getActionSite, restoreState, saveState
 
Methods inherited from class org.eclipse.ui.actions. ActionGroup
getContext
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefactoringSynchronizationActionProvider

public RefactoringSynchronizationActionProvider()
Method Detail

fillContextMenu

public void fillContextMenu(
IMenuManager menu)
Adds the applicable actions to a context menu, based on the state of the ActionContext.

The default implementation does nothing. Subclasses may override or extend this method.

Overrides:
fillContextMenu in class SynchronizationActionProvider
Parameters:
menu - the context menu manager

initialize

protected void initialize()
Method called during action provider initialization. It is invoked from the 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.

Overrides:
initialize in class SynchronizationActionProvider
See Also:
SynchronizationActionProvider.registerHandler(String, IHandler), MergeActionHandler

initializeOpenActions

protected void initializeOpenActions()
Method called from 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.

Overrides:
initializeOpenActions in class SynchronizationActionProvider

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire