edu.cmu.archevol.ui.compare.actions
Class CompareAction
java.lang.Object
edu.cmu.archevol.ui.compare.actions.CompareAction
- All Implemented Interfaces:
- IActionDelegate, IWorkbenchWindowActionDelegate
public class CompareAction
- extends Object
- implements IWorkbenchWindowActionDelegate
- Author:
- Snehal Fulzele
This action will respond to the selected AE instances on the AE editor/overview diagram
and open up the Compare View Editor (see CompareContainerEditor.java)
CompareAction
public CompareAction()
dispose
public void dispose()
- Specified by:
dispose in interface IWorkbenchWindowActionDelegate
init
public void init(IWorkbenchWindow arg0)
- Specified by:
init in interface IWorkbenchWindowActionDelegate
run
public void run(IAction arg0)
- If the number of selected instances are more than 2, the compare view will get opened with the first two selections.
- Specified by:
run in interface IActionDelegate
- Parameters:
action -
selectionChanged
public void selectionChanged(IAction action,
ISelection selection)
- Logic for enabling and disabling the compare action goes here
- Specified by:
selectionChanged in interface IActionDelegate
- Parameters:
action - selection -