com.ibm.carma.ui.action.custom
Class CarmaCustomActionMenuDelegate

java.lang.Object
  extended by org.eclipse.ui.actions.ActionDelegate
      extended by com.ibm.carma.ui.action.CarmaObjectActionDelegate
          extended by com.ibm.carma.ui.action.custom.CarmaCustomActionMenuDelegate
All Implemented Interfaces:
org.eclipse.jface.action.IMenuCreator, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IViewActionDelegate

public class CarmaCustomActionMenuDelegate
extends CarmaObjectActionDelegate
implements org.eclipse.jface.action.IMenuCreator

This Class is the delegate for creating the Custom Action Menu for CARMAResources.

This Class is not intended to be subclassed or instantiated.

See Also:
CarmaCustomActionRegistry

Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.carma.ui.action.CarmaObjectActionDelegate
CarmaObjectActionDelegate.CarmaAction
 
Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
CarmaCustomActionMenuDelegate()
           
 
Method Summary
 void dispose()
           
 org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
           
 org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Menu parent)
           
 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 com.ibm.carma.ui.action.CarmaObjectActionDelegate
getBasicSelectedCarmaResources, getSelectedCarmaReferences, getSelectedCarmaResources, getSelection, getShell, getTargetPart, init, isUnsupported, isUnsupported, setActivePart
 
Methods inherited from class org.eclipse.ui.actions.ActionDelegate
init, runWithEvent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

CarmaCustomActionMenuDelegate

public CarmaCustomActionMenuDelegate()
Method Detail

run

public void run(org.eclipse.jface.action.IAction action)
Specified by:
run in interface org.eclipse.ui.IActionDelegate
Overrides:
run in class org.eclipse.ui.actions.ActionDelegate

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
Overrides:
selectionChanged in class CarmaObjectActionDelegate

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.action.IMenuCreator
Specified by:
dispose in interface org.eclipse.ui.IActionDelegate2
Overrides:
dispose in class org.eclipse.ui.actions.ActionDelegate

getMenu

public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
Specified by:
getMenu in interface org.eclipse.jface.action.IMenuCreator

getMenu

public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Menu parent)
Specified by:
getMenu in interface org.eclipse.jface.action.IMenuCreator