|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.ui.actions.SystemAbstractPopupMenuExtensionAction
com.ibm.etools.systems.core.ui.actions.SystemAbstractRemoteFilePopupMenuExtensionAction
com.ibm.etools.iseries.core.ui.actions.isv.ISeriesAbstractIFSPopupMenuExtensionAction
This is a base class to simplify the creation of actions supplied via the com.ibm.etools.systems.core.popupMenus extension point, targeting IFS files and/or IFS folders.
The runCommand method in this action runs QSHELL commands only. To run QSYS commands, use the runQSYSCommand method instead.
The only method you must implement is run()
.
You may optionally override getEnabled(Object[])
Convenience methods available in this class:
See also the convenience methods available in the parent class SystemAbstractRemoteFilePopupMenuExtensionAction
and the grandparent class SystemAbstractPopupMenuExtensionAction
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemAbstractPopupMenuExtensionAction |
---|
EMPTY_ARRAY, proxyAction, sel, shell, viewPart |
Constructor Summary | |
---|---|
ISeriesAbstractIFSPopupMenuExtensionAction()
Constructor |
Method Summary | |
---|---|
boolean |
getEnabled(Object[] currentlySelected)
The user has selected one or more objects. |
protected CmdSubSystem |
getQSYSCommandSubSystem()
Internal method to find and return the associated QSYS command subsystem, for the purpose of issuing a remote command |
abstract void |
run()
The user has selected this action. |
Object[] |
runQSYSCommand(String command)
Execute a remote QSYS command. |
protected CmdSubSystem |
selectQSYSSubSystem(com.ibm.etools.systems.subsystems.SubSystem[] allCmdSubSystems)
Internal method to select the appropriate command subsystem when there are multiple defined for this connection. |
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemAbstractRemoteFilePopupMenuExtensionAction |
---|
getFirstSelectedRemoteFile, getRemoteFileSubSystem, getRemoteFileSubSystemFactory, getSelectedRemoteFiles |
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemAbstractPopupMenuExtensionAction |
---|
getActivePart, getCommandSubSystem, getFirstSelectedRemoteObject, getFirstSelectedRemoteObjectAdapter, getProxyAction, getRemoteAdapter, getRemoteObjectName, getRemoteObjectSubSubType, getRemoteObjectSubSystemFactoryId, getRemoteObjectSubType, getRemoteObjectType, getRemoteObjectTypeCategory, getSelectedRemoteObjectAdapters, getSelectedRemoteObjects, getSelection, getSelectionCount, getShell, getSubSystem, getSubSystemFactory, getSystemConnection, getWorkingDirectory, printTest, run, runCommand, runCommand, selectionChanged, setActivePart, setChecked, setEnabled, showInView |
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 |
Field Detail |
public static final String copyright
Constructor Detail |
public ISeriesAbstractIFSPopupMenuExtensionAction()
Method Detail |
public abstract void run()
public boolean getEnabled(Object[] currentlySelected)
The default implementation of this method returns false if all the objects are not of type IRemoteFile and are IFS file or folders.
public Object[] runQSYSCommand(String command)
Note that the runCommand methods execute QSHELL commands. You must call this to run a QSYS command.
command
- Command to be executed remotely.
SystemAbstractPopupMenuExtensionAction.runCommand(String)
protected CmdSubSystem getQSYSCommandSubSystem()
protected CmdSubSystem selectQSYSSubSystem(com.ibm.etools.systems.subsystems.SubSystem[] allCmdSubSystems)
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |