com.ibm.carma.ui.action
Class CreateObjectActionDelegate
java.lang.Object
org.eclipse.ui.actions.ActionDelegate
com.ibm.carma.ui.action.CarmaObjectActionDelegate
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
- Author:
- David Myers
|
Field Summary |
static java.lang.String |
COPYRIGHT
|
|
Method Summary |
abstract java.lang.String |
getActionIdentifier()
Implementers should return the action identifier that is associated with the delegate. |
com.ibm.carma.model.ResourceContainer |
getParentContainer()
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
| 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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
CreateObjectActionDelegate
public CreateObjectActionDelegate()
getParentContainer
public com.ibm.carma.model.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