iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.core.ui.actions
Class ISeriesSystemBaseDialogAction

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended bycom.ibm.etools.systems.core.ui.actions.SystemBaseAction
          extended bycom.ibm.etools.systems.core.ui.actions.SystemBaseDialogAction
              extended bycom.ibm.etools.iseries.core.ui.actions.ISeriesSystemBaseDialogAction
All Implemented Interfaces:
IAction, ISelectionChangedListener, com.ibm.etools.systems.core.ui.actions.ISystemAction, com.ibm.etools.systems.core.ui.actions.ISystemDialogAction
Direct Known Subclasses:
ISeriesAbstractLiblDialogAction, ISeriesCopyLibraryAction, ISeriesDataTableViewPositionToAction, ISeriesObjTableViewPositionToAction, ISeriesSearchAction, ISeriesTableViewExportAction, ISeriesTableViewSubsetAction

public abstract class ISeriesSystemBaseDialogAction
extends com.ibm.etools.systems.core.ui.actions.SystemBaseDialogAction

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 AS00Connections


Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseDialogAction
cancelled, dlgHelpId, needsProgressMonitor, needsProgressMonitorSet, processAll, value
 
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
protected ISeriesSystemBaseDialogAction(ResourceBundle rb, String prefix, ImageDescriptor image, Shell parent)
          Constructor for ISeriesSystemBaseDialogAction given a resource bundle from which the label, tooltip and description can be retrieved, and there is a image to display in a menu.
protected ISeriesSystemBaseDialogAction(ResourceBundle rb, String prefix, Shell parent)
          Constructor for ISeriesSystemBaseDialogAction given a resource bundle from which the label, tooltip and description can be retrieved, and there is no image for this action.
protected ISeriesSystemBaseDialogAction(String text, ImageDescriptor image, Shell parent)
          Constructor for ISeriesSystemBaseDialogAction when translated label is known.
protected ISeriesSystemBaseDialogAction(String text, String tooltip, ImageDescriptor image, Shell parent)
          Constructor for ISeriesSystemBaseDialogAction when translated label and tooltip are known.
protected ISeriesSystemBaseDialogAction(String text, String tooltip, String description, ImageDescriptor image, Shell parent)
          Constructor for ISeriesSystemBaseDialogAction when translated label and tooltip and description are all known.
 
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
 boolean updateSelection(IStructuredSelection selection)
           
 
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseDialogAction
createDialog, getDialogHelpContextId, getDialogValue, getNeedsProgressMonitor, getProcessAllSelections, getValue, run, setDialogHelp, setNeedsProgressMonitor, setProcessAllSelections, setValue, wasCancelled, wasNeedsProgressMonitorSet
 
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, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setSystemConnection, setTracing, setTracing, setViewer
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.core.ui.actions.ISystemAction
allowOnMultipleSelection, getContextMenuGroup, getHelpContextId, getSelection, getShell, getViewer, isDummy, isSelectionSensitive, setContextMenuGroup, setHelp, setInputs, setSelection, setSelectionSensitive, setShell, setViewer
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from interface org.eclipse.jface.viewers.ISelectionChangedListener
selectionChanged
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

ISeriesSystemBaseDialogAction

protected ISeriesSystemBaseDialogAction(String text,
                                        ImageDescriptor image,
                                        Shell parent)
Constructor for ISeriesSystemBaseDialogAction when translated label is known. You must separately call setToolTipText and setDescription to enable these if desired.

Parameters:
text - string to display in menu or toolbar
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.

ISeriesSystemBaseDialogAction

protected ISeriesSystemBaseDialogAction(String text,
                                        String tooltip,
                                        ImageDescriptor image,
                                        Shell parent)
Constructor for ISeriesSystemBaseDialogAction when translated label and tooltip are known. You must separately call setDescription to enable this if desired.

Parameters:
text - string to display in menu or toolbar
tooltip - 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.

ISeriesSystemBaseDialogAction

protected ISeriesSystemBaseDialogAction(String text,
                                        String tooltip,
                                        String description,
                                        ImageDescriptor image,
                                        Shell parent)
Constructor for ISeriesSystemBaseDialogAction when translated label and tooltip and description are all known.

Parameters:
text - string to display in menu or toolbar
tooltip - 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.

ISeriesSystemBaseDialogAction

protected ISeriesSystemBaseDialogAction(ResourceBundle rb,
                                        String prefix,
                                        ImageDescriptor image,
                                        Shell parent)
Constructor for ISeriesSystemBaseDialogAction given a resource bundle from which the label, tooltip and description can be retrieved, and there is a image to display in a menu.

Parameters:
rb - ResourceBundle that label (+".label") and tip (+".tooltip") 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.

ISeriesSystemBaseDialogAction

protected ISeriesSystemBaseDialogAction(ResourceBundle rb,
                                        String prefix,
                                        Shell parent)
Constructor for ISeriesSystemBaseDialogAction given a resource bundle from which the label, tooltip and description can be retrieved, and there is no image for this action.

Parameters:
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

updateSelection

public boolean updateSelection(IStructuredSelection selection)

getDataElement

public static com.ibm.etools.systems.dstore.core.model.DataElement getDataElement(Object element)
Get the DataElement given the input. The input is either a DataElement directly, or a ISeriesDataElementWrapper wrapper.


getISeriesConnection

public ISeriesConnection getISeriesConnection(Object element)
Returns the ISeriesConnection from which this object originated


iSeries Remote Systems
v6.0.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.