Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.actions
Class QSYSSystemBaseDialogAction

java.lang.Object
  extended by SystemBaseDialogAction
      extended by com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseDialogAction
Direct Known Subclasses:
IBMiSelectAbstractAction, ISeriesDataTableViewPositionToAction, ISeriesSearchAction, ISeriesTableViewSubsetAction, ObjTableExportAction, ObjTablePositionToAction, QSYSAbstractLiblDialogAction, QSYSCopyLibraryAction

public abstract class QSYSSystemBaseDialogAction
extends 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 IBMiConnection.


Field Summary
static String copyright
           
 
Constructor Summary
protected QSYSSystemBaseDialogAction(String text, ImageDescriptor image, Shell parent)
          Constructor for ISeriesSystemBaseDialogAction when translated label is known.
protected QSYSSystemBaseDialogAction(String text, String tooltip, ImageDescriptor image, Shell parent)
          Constructor for ISeriesSystemBaseDialogAction when translated label and tooltip are known.
protected QSYSSystemBaseDialogAction(String text, String tooltip, 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 QSYSSystemBaseDialogAction(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
 IBMiConnection getIBMiConnection(Object element)
          Returns the ISeriesConnection from which this object originated
 boolean updateSelection(IStructuredSelection selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

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

QSYSSystemBaseDialogAction

protected QSYSSystemBaseDialogAction(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.

QSYSSystemBaseDialogAction

protected QSYSSystemBaseDialogAction(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.

QSYSSystemBaseDialogAction

protected QSYSSystemBaseDialogAction(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.

QSYSSystemBaseDialogAction

protected QSYSSystemBaseDialogAction(String text,
                                     String tooltip,
                                     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:
text - string to display in menu or toolbar.
tooltip - string to display when user hovers mouse over action.
shell - parent. Can be null if you don't know it, but call setShell when you do.
Method Detail

updateSelection

public boolean updateSelection(IStructuredSelection selection)

getIBMiConnection

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


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 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.