|
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.iseries.core.ui.actions.isv.ISeriesAbstractQSYSPopupMenuExtensionAction
This is a base class to simplify the creation of actions supplied via the com.ibm.etools.systems.core.popupMenus extension point, targeting objects in the QSYS file system.
The only method you must implement is run()
.
You may optionally override getEnabled(Object[])
Convenience methods available in this class:
getISeriesConnection()
getSelectedLibraries()
getSelectedObjects()
getSelectedMembers()
getSelectedRecords()
getSelectedFields()
See also the convenience methods available in the parent class SystemAbstractPopupMenuExtensionAction
Field Summary | |
---|---|
protected Hashtable |
convertedObjects
|
static String |
copyright
|
protected boolean |
useHashTable
|
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemAbstractPopupMenuExtensionAction |
---|
EMPTY_ARRAY, proxyAction, sel, shell, viewPart |
Constructor Summary | |
---|---|
ISeriesAbstractQSYSPopupMenuExtensionAction()
Constructor |
Method Summary | |
---|---|
boolean |
getEnabled(Object[] currentlySelected)
The user has selected one or more objects. |
ISeriesConnection |
getISeriesConnection()
Return the ISeriesConnection from which the selected remote objects were resolved. |
protected Object |
getISeriesObjectFromRemoteObject(Object remoteObject)
Given a remote object in its native format, return a key value to canonically represent it. |
ISeriesField[] |
getSelectedFields()
Return the selected objects as an array of ISeriesField objects. |
ISeriesLibrary[] |
getSelectedLibraries()
Return the selected objects as an array of ISeriesLibrary objects. |
ISeriesMember[] |
getSelectedMembers()
Return the selected objects as an array of ISeriesMember objects. |
ISeriesObject[] |
getSelectedObjects()
Return the selected objects as an array of ISeriesObject objects or ISeriesFile objects (the latter is a subclass of the former). |
ISeriesRecord[] |
getSelectedRecords()
Return the selected objects as an array of ISeriesRecord objects. |
void |
reset()
Call this from your run() method if you re-use this action between runs. |
abstract void |
run()
The user has selected this action. |
Object[] |
runCommand(String command)
Intercept of parent method so we can implement it uniquely for QSYS commands versus QSHELL command. |
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, 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
protected Hashtable convertedObjects
protected boolean useHashTable
Constructor Detail |
public ISeriesAbstractQSYSPopupMenuExtensionAction()
Method Detail |
public abstract void run()
public void reset()
public boolean getEnabled(Object[] currentlySelected)
The default implementation of this method returns true. Override to refine.
public Object[] runCommand(String command)
command
- Command to be executed remotely.
public ISeriesConnection getISeriesConnection()
public ISeriesLibrary[] getSelectedLibraries()
public ISeriesObject[] getSelectedObjects()
public ISeriesMember[] getSelectedMembers()
public ISeriesRecord[] getSelectedRecords()
public ISeriesField[] getSelectedFields()
protected Object getISeriesObjectFromRemoteObject(Object remoteObject)
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |