edu.cmu.archevol.ui.compare.actions
Class CompareAction

java.lang.Object
  extended by 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)


Constructor Summary
CompareAction()
           
 
Method Summary
 void dispose()
           
 void init(IWorkbenchWindow arg0)
           
 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.
 void selectionChanged(IAction action, ISelection selection)
          Logic for enabling and disabling the compare action goes here
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareAction

public CompareAction()
Method Detail

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 -