|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.ui.actions.SystemAbstractPopupMenuExtensionAction
org.eclipse.rse.files.ui.actions.SystemAbstractRemoteFilePopupMenuExtensionAction
This is a base class to simplify the creation of actions supplied via the org.eclipse.rse.ui.popupMenus extension point, targeting remote files and/or remote folders.
The only method you must implement is run().
You may optionally override getEnabled(Object[])
Convenience methods available in this class:
getSelectedRemoteFiles()
getFirstSelectedRemoteFile()
getRemoteFileSubSystem()
getRemoteFileSubSystemConfiguration()
See also the convenience methods available in the parent class SystemAbstractPopupMenuExtensionAction
ISystemRemoteElementAdapter,
SystemPromptDialog| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.ui.actions.SystemAbstractPopupMenuExtensionAction |
|---|
EMPTY_ARRAY, proxyAction, sel, shell, viewPart |
| Constructor Summary | |
|---|---|
SystemAbstractRemoteFilePopupMenuExtensionAction()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
getEnabled(Object[] currentlySelected)
The user has selected one or more objects. |
IRemoteFile |
getFirstSelectedRemoteFile()
Retrieve the first selected object, as an IRemoteFile, for convenience. |
IRemoteFileSubSystem |
getRemoteFileSubSystem()
Get the remote file subsystem from which the selected objects were resolved. |
IRemoteFileSubSystemConfiguration |
getRemoteFileSubSystemConfiguration()
Returns the remote file subsystem factory which owns the subsystem from which the selected remote objects were resolved. |
IRemoteFile[] |
getSelectedRemoteFiles()
Retrieve the currently selected objects as an array of IRemoteFile objects. |
abstract void |
run()
The user has selected this action. |
| 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.IObjectActionDelegate |
|---|
setActivePart |
| Methods inherited from interface org.eclipse.ui.IActionDelegate |
|---|
run, selectionChanged |
| Constructor Detail |
public SystemAbstractRemoteFilePopupMenuExtensionAction()
| Method Detail |
public abstract void run()
run in class SystemAbstractPopupMenuExtensionActionpublic boolean getEnabled(Object[] currentlySelected)
The default implementation of this method returns false if all the objects are not of type IRemoteFile.
getEnabled in class SystemAbstractPopupMenuExtensionActionpublic IRemoteFile[] getSelectedRemoteFiles()
public IRemoteFile getFirstSelectedRemoteFile()
public IRemoteFileSubSystem getRemoteFileSubSystem()
public IRemoteFileSubSystemConfiguration getRemoteFileSubSystemConfiguration()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||