|
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.Objectcom.ibm.etools.iseries.rse.ui.actions.popupmenu.SystemAbstractPopupMenuAction
com.ibm.etools.iseries.rse.ui.actions.popupmenu.ISeriesAbstractQSYSPopupMenuAction
public abstract class ISeriesAbstractQSYSPopupMenuAction
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 com.ibm.etools.systems.core.ui.actions.SystemAbstractPopupMenuExtensionAction
| Field Summary | |
|---|---|
protected Hashtable |
convertedObjects
|
static String |
copyright
|
protected boolean |
useHashTable
|
| Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.popupmenu.SystemAbstractPopupMenuAction |
|---|
proxyAction, sel, shell, viewPart |
| Constructor Summary | |
|---|---|
ISeriesAbstractQSYSPopupMenuAction()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
getEnabled(Object[] currentlySelected)
The user has selected one or more objects. |
IBMiConnection |
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. |
IQSYSLibrary[] |
getSelectedLibraries()
Return the selected objects as an array of ISeriesLibrary objects. |
IQSYSMember[] |
getSelectedMembers()
Return the selected objects as an array of ISeriesMember objects. |
IQSYSObject[] |
getSelectedObjects()
Return the selected objects as an array of ISeriesObject objects or ISeriesFile objects (the latter is a subclass of the former). |
IISeriesRecord[] |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String copyright
protected Hashtable convertedObjects
protected boolean useHashTable
| Constructor Detail |
|---|
public ISeriesAbstractQSYSPopupMenuAction()
| Method Detail |
|---|
public abstract void run()
run in class SystemAbstractPopupMenuActionpublic void reset()
public boolean getEnabled(Object[] currentlySelected)
The default implementation of this method returns true. Override to refine.
getEnabled in class SystemAbstractPopupMenuActionpublic Object[] runCommand(String command)
runCommand in class SystemAbstractPopupMenuActioncommand - Command to be executed remotely.
public IBMiConnection getISeriesConnection()
public IQSYSLibrary[] getSelectedLibraries()
public IQSYSObject[] getSelectedObjects()
public IQSYSMember[] getSelectedMembers()
public IISeriesRecord[] getSelectedRecords()
protected Object getISeriesObjectFromRemoteObject(Object remoteObject)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||