org.topcased.ui.refactoring.actions
Class RenameModelFileAction
java.lang.Object
org.topcased.ui.refactoring.actions.RenameModelFileAction
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate
public class RenameModelFileAction
- extends java.lang.Object
- implements org.eclipse.ui.IActionDelegate
Action that is triggered from the navigator context menu
This action is declared in the plugin.xml
.
Creation 10 janv. 07
Method Summary |
protected java.util.List<org.eclipse.core.resources.IFile> |
retrieveFileAndParticipantsToRename()
Return a list of File : these are the files that are involved in the rename refactoring. |
void |
run(org.eclipse.jface.action.IAction action)
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenameModelFileAction
public RenameModelFileAction()
run
public void run(org.eclipse.jface.action.IAction action)
- Specified by:
run
in interface org.eclipse.ui.IActionDelegate
- See Also:
IActionDelegate.run(org.eclipse.jface.action.IAction)
retrieveFileAndParticipantsToRename
protected java.util.List<org.eclipse.core.resources.IFile> retrieveFileAndParticipantsToRename()
- Return a list of File : these are the files that are involved in the rename refactoring. In general this is the
model and the diagram file. By default we consider that the selected file is a model or a diagram file, and we
add the associated file if it exists.
- Returns:
- List the list of files that should be renamed
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interface org.eclipse.ui.IActionDelegate
- See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.