org.eclipse.ptp.ui.actions
Class AbstractResourceManagerSelectionActionDelegate
java.lang.Object
org.eclipse.ptp.ui.actions.AbstractResourceManagerSelectionActionDelegate
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.ui.IObjectActionDelegate
- Direct Known Subclasses:
- StartResourceManagersObjectActionDelegate, StopResourceManagersObjectActionDelegate
public abstract class AbstractResourceManagerSelectionActionDelegate
- extends Object
- implements org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IActionDelegate2
|
Method Summary |
void |
dispose()
|
protected List<org.eclipse.ptp.rmsystem.IResourceManagerMenuContribution> |
getMenuContribs()
|
protected org.eclipse.swt.widgets.Shell |
getTargetShell()
|
void |
init(org.eclipse.jface.action.IAction action)
|
protected boolean |
isEnabled()
|
protected abstract boolean |
isEnabledFor(org.eclipse.ptp.core.elements.IPResourceManager rmManager)
|
void |
runWithEvent(org.eclipse.jface.action.IAction action,
org.eclipse.swt.widgets.Event event)
|
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 java.lang.Object |
clone, equals, finalize, 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 |
AbstractResourceManagerSelectionActionDelegate
public AbstractResourceManagerSelectionActionDelegate()
dispose
public void dispose()
- Specified by:
dispose in interface org.eclipse.ui.IActionDelegate2
init
public void init(org.eclipse.jface.action.IAction action)
- Specified by:
init in interface org.eclipse.ui.IActionDelegate2
runWithEvent
public void runWithEvent(org.eclipse.jface.action.IAction action,
org.eclipse.swt.widgets.Event event)
- Specified by:
runWithEvent in interface org.eclipse.ui.IActionDelegate2
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
setActivePart
public void setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart)
- Specified by:
setActivePart in interface org.eclipse.ui.IObjectActionDelegate
getMenuContribs
protected List<org.eclipse.ptp.rmsystem.IResourceManagerMenuContribution> getMenuContribs()
getTargetShell
protected org.eclipse.swt.widgets.Shell getTargetShell()
isEnabled
protected boolean isEnabled()
- Returns:
isEnabledFor
protected abstract boolean isEnabledFor(org.eclipse.ptp.core.elements.IPResourceManager rmManager)
- Parameters:
rmManager -
- Returns:
- - is this rmManager allowed with this action
- Since:
- 5.0
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.