|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.actions.ActionDelegate
com.ibm.carma.ui.action.CarmaObjectActionDelegate
public abstract class CarmaObjectActionDelegate
This abstract class can be extended by clients hoping to implement an IObjectActionDelegate to act against CARMAResources or IResources which map to CARMAResources, and had that association stored through ResourceUtils.
| Nested Class Summary | |
|---|---|
static interface |
CarmaObjectActionDelegate.CarmaAction
Indicates the Carma action which the IObjectActionDelegate references. |
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
| Method Summary | |
|---|---|
java.util.Collection<CARMAResource> |
getBasicSelectedCarmaResources()
Same as getSelectedCarmaResources() except that it does not catch and handle with a dialog NotSynchronizedExceptions, but instead hands them back to the caller |
java.util.List<ICARMAResourceReference> |
getSelectedCarmaReferences()
The convience method loops through the selected items. |
java.util.Collection<CARMAResource> |
getSelectedCarmaResources()
The convience method loops through the selected items. |
org.eclipse.jface.viewers.ISelection |
getSelection()
Returns the currently selected item |
org.eclipse.swt.widgets.Shell |
getShell()
|
org.eclipse.ui.IWorkbenchPart |
getTargetPart()
|
void |
init(org.eclipse.ui.IViewPart view)
|
boolean |
isUnsupported(CARMAResource resource,
java.lang.String actionId)
This method will check the correct preferences and return whether or not to display the specified action for the selected items. |
boolean |
isUnsupported(java.lang.String actionId)
This method will check the correct preferences and return whether or not to display the specified action for the selected items. |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
void |
setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart)
|
| 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 |
|---|
public static final java.lang.String COPYRIGHT
| Method Detail |
|---|
public void setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart)
setActivePart in interface org.eclipse.ui.IObjectActionDelegatepublic boolean isUnsupported(java.lang.String actionId)
actionId - the actionId to check for the supported-ness of.
public boolean isUnsupported(CARMAResource resource,
java.lang.String actionId)
resource - the resource to check for support of the action IdactionId - the actionId to check for the supported-ness of.
public void init(org.eclipse.ui.IViewPart view)
init in interface org.eclipse.ui.IViewActionDelegate
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.IActionDelegateselectionChanged in class org.eclipse.ui.actions.ActionDelegatepublic org.eclipse.jface.viewers.ISelection getSelection()
public org.eclipse.swt.widgets.Shell getShell()
public org.eclipse.ui.IWorkbenchPart getTargetPart()
public java.util.Collection<CARMAResource> getBasicSelectedCarmaResources()
throws NotSynchronizedException
NotSynchronizedException - If we cannot translate an the selection object(s) into
an associated CARMAResource due to the model being unsynchronized.public java.util.Collection<CARMAResource> getSelectedCarmaResources()
ResourceUtils
framework to associate the selected objects with CARMAResources and add the associated CARMAResources
to the returned Collection.
Care should be used when calling this method, as it will open dialogs and be time consuming if the model is not synchronized.
public java.util.List<ICARMAResourceReference> getSelectedCarmaReferences()
ResourceUtils
framework to associate the selected objects with ICARMAResourceReferences and add the associated
references to the returned Collection.
Care should be used when calling this method, as it will open dialogs and be time consuming if the model is not synchronized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||