com.ibm.carma.ui.action
Class CreateObjectActionDelegate

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.CreateObjectActionDelegate
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IViewActionDelegate
Direct Known Subclasses:
NewContainerDelegate, NewMemberDelegate

public abstract class CreateObjectActionDelegate
extends CarmaObjectActionDelegate

Base class for CARMA IActionDelegate classes which create new objects in the CARMA structure. The selectionChanged method is specially tailored to locate the parent item for the creation job to execute.

Since:
7.0

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
CreateObjectActionDelegate()
           
 
Method Summary
abstract  java.lang.String getActionIdentifier()
          Implementers should return the action identifier that is associated with the delegate.
 ResourceContainer getParentContainer()
           
 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
dispose, init, run, runWithEvent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IActionDelegate
run
 
Methods inherited from interface org.eclipse.ui.IActionDelegate
run
 

Field Detail

COPYRIGHT

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

CreateObjectActionDelegate

public CreateObjectActionDelegate()
Method Detail

getParentContainer

public ResourceContainer getParentContainer()
Returns:
Returns the parentContainer.

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

getActionIdentifier

public abstract java.lang.String getActionIdentifier()
Implementers should return the action identifier that is associated with the delegate. The action Id is used to determine if the action is enabled or not on the selected elements

Returns:
the action identifier for CARMA action the delegate performs