|
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 SystemBaseAction com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseAction
public abstract class QSYSSystemBaseAction
Base action class for IBM i actions. This adds support to disable the action if user has chosen to work offline. It also adds a couple helper methods for IBMiConnections
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
QSYSSystemBaseAction(String text,
ImageDescriptor image,
Shell parent)
Constructor for ISeriesSystemBaseAction when translated label is known. |
|
QSYSSystemBaseAction(String text,
Shell parent)
Used for actions with no image icon. |
|
QSYSSystemBaseAction(String text,
String tooltip,
ImageDescriptor image,
Shell parent)
Constructor for ISeriesSystemBaseAction when translated label and tooltip are known. |
|
QSYSSystemBaseAction(String text,
String tooltip,
Shell parent)
Used for actions with no image icon. |
|
QSYSSystemBaseAction(String text,
String tooltip,
String description,
ImageDescriptor image,
Shell parent)
Constructor for ISeriesSystemBaseAction when translated label and tooltip and description are all known. |
|
QSYSSystemBaseAction(String text,
String tooltip,
String description,
Shell parent)
Used for actions with no image icon. |
Method Summary | |
---|---|
IBMiConnection |
getIBMiConnection(Object element)
Returns the ISeriesConnection from which this object originated |
void |
isAvailableOffline(boolean availableOffline)
If this is one of those rare actions that is to be made available in offline mode, then call this in during or immediately after constructing to state that. |
boolean |
updateSelection(IStructuredSelection selection)
|
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 QSYSSystemBaseAction(String text, ImageDescriptor image, Shell parent)
text
- string to display in menu or toolbarimage
- icon to display in menu or toolbar. Can be null.parent
- Shell of parent window. Can be null if you don't know it, but call setShell when you do.public QSYSSystemBaseAction(String text, String tooltip, ImageDescriptor image, Shell parent)
text
- string to display in menu or toolbartooltip
- string to display when user hovers mouse over action.image
- icon to display in menu or toolbar. Can be null.parent
- Shell of parent window. Can be null if you don't know it, but call setShell when you do.public QSYSSystemBaseAction(String text, String tooltip, String description, ImageDescriptor image, Shell parent)
text
- string to display in menu or toolbartooltip
- string to display when user hovers mouse over action.description
- string displayed in status bar of some displays. Longer than tooltip.image
- icon to display in menu or toolbar. Can be null.parent
- Shell of parent window. Can be null if you don't know it, but call setShell when you do.public QSYSSystemBaseAction(String text, Shell parent)
text
- string to display in menu or toolbarparent
- Shell of parent window. Can be null if you don't know it, but call setShell when you do.public QSYSSystemBaseAction(String text, String tooltip, Shell parent)
text
- string to display in menu or toolbartooltip
- string to display when user hovers mouse over action.parent
- Shell of parent window. Can be null if you don't know it, but call setShell when you do.public QSYSSystemBaseAction(String text, String tooltip, String description, Shell parent)
text
- string to display in menu or toolbartooltip
- string to display when user hovers mouse over action.description
- string displayed in status bar of some displays. Longer than tooltip.parent
- Shell of parent window. Can be null if you don't know it, but call setShell when you do.Method Detail |
---|
public void isAvailableOffline(boolean availableOffline)
public boolean updateSelection(IStructuredSelection selection)
public IBMiConnection getIBMiConnection(Object element)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |