|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.rse.ui.actions.popupmenu.SystemAbstractPopupMenuAction com.ibm.etools.iseries.rse.ui.actions.popupmenu.SystemAbstractRemoteFilePopupMenuAction
public abstract class SystemAbstractRemoteFilePopupMenuAction
This is a base class to simplify the creation of actions supplied via the com.ibm.etools.systems.core.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()
#getRemoteFileSubSystemFactory()
See also the convenience methods available in the parent class SystemAbstractPopupMenuExtensionAction
com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
,
com.ibm.etools.systems.core.ui.dialogs.SystemPromptDialog
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.popupmenu.SystemAbstractPopupMenuAction |
---|
proxyAction, sel, shell, viewPart |
Constructor Summary | |
---|---|
SystemAbstractRemoteFilePopupMenuAction()
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. |
RemoteFileSubSystem |
getRemoteFileSubSystem()
Get the remote file subsystem from which the selected 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 |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public SystemAbstractRemoteFilePopupMenuAction()
Method Detail |
---|
public abstract void run()
run
in class SystemAbstractPopupMenuAction
public boolean getEnabled(Object[] currentlySelected)
The default implementation of this method returns false if all the objects are not of type IRemoteFile.
getEnabled
in class SystemAbstractPopupMenuAction
public IRemoteFile[] getSelectedRemoteFiles()
public IRemoteFile getFirstSelectedRemoteFile()
public RemoteFileSubSystem getRemoteFileSubSystem()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |