|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.Action
com.ibm.etools.systems.core.ui.actions.SystemBaseAction
com.ibm.etools.iseries.core.ui.actions.ISeriesSystemBaseAction
Base dialog class for iSeries dialog actions. This adds support to disable the action if user has chosen to work offline. It also adds a couple helper methods for dataelements and ISeriesConnections
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction |
---|
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor |
Fields inherited from interface org.eclipse.jface.action.IAction |
---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
---|---|
ISeriesSystemBaseAction(ResourceBundle rb,
String prefix,
ImageDescriptor image,
Shell parent)
Constructor for ISeriesSystemBaseAction given a resource bundle from which the label, tooltip and description can be retrieved. |
|
ISeriesSystemBaseAction(ResourceBundle rb,
String prefix,
Shell parent)
Used for actions with no image icon. |
|
ISeriesSystemBaseAction(String text,
ImageDescriptor image,
Shell parent)
Constructor for ISeriesSystemBaseAction when translated label is known. |
|
ISeriesSystemBaseAction(String text,
Shell parent)
Used for actions with no image icon. |
|
ISeriesSystemBaseAction(String text,
String tooltip,
ImageDescriptor image,
Shell parent)
Constructor for ISeriesSystemBaseAction when translated label and tooltip are known. |
|
ISeriesSystemBaseAction(String text,
String tooltip,
Shell parent)
Used for actions with no image icon. |
|
ISeriesSystemBaseAction(String text,
String tooltip,
String description,
ImageDescriptor image,
Shell parent)
Constructor for ISeriesSystemBaseAction when translated label and tooltip and description are all known. |
|
ISeriesSystemBaseAction(String text,
String tooltip,
String description,
Shell parent)
Used for actions with no image icon. |
Method Summary | |
---|---|
static com.ibm.etools.systems.dstore.core.model.DataElement |
getDataElement(Object element)
Get the DataElement given the input. |
ISeriesConnection |
getISeriesConnection(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 com.ibm.etools.systems.core.ui.actions.SystemBaseAction |
---|
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getDescription, getFirstSelection, getHelpContextId, getLabel, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getString, getStringOrNull, getSystemConnection, getToolTip, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, run, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setSystemConnection, setTracing, setTracing, setViewer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IAction |
---|
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
Field Detail |
public static final String copyright
Constructor Detail |
public ISeriesSystemBaseAction(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 ISeriesSystemBaseAction(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 ISeriesSystemBaseAction(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 ISeriesSystemBaseAction(ResourceBundle rb, String prefix, ImageDescriptor image, Shell parent)
rb
- ResourceBundle that label (+".label"), tip (+".tooltip") and description (+".description")
are derived from.prefix
- resource properties prefix that suffixes are added to, to find label, tip and desc.image
- icon to display in menu or toolbar. can be null.public ISeriesSystemBaseAction(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 ISeriesSystemBaseAction(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 ISeriesSystemBaseAction(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.public ISeriesSystemBaseAction(ResourceBundle rb, String prefix, Shell parent)
rb
- ResourceBundle that label (+".label"), tip (+".tooltip") and description (+".description")
are derived from.prefix
- resource properties prefix that suffixes are added to, to find label, tip and desc.Method Detail |
public void isAvailableOffline(boolean availableOffline)
public boolean updateSelection(IStructuredSelection selection)
public static com.ibm.etools.systems.dstore.core.model.DataElement getDataElement(Object element)
public ISeriesConnection getISeriesConnection(Object element)
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |