Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by SystemBaseAction
      extended by com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseAction
          extended by com.ibm.etools.iseries.rse.ui.actions.QSYSAbstractLiblAction
Direct Known Subclasses:
QSYSMoveDownLibraryAction, QSYSMoveUpLibraryAction, QSYSRemoveLiblEntryAction

public abstract class QSYSAbstractLiblAction
extends QSYSSystemBaseAction

Base class abstracting out common methods for libl related actions


Field Summary
protected  IBMiConnection conn400
           
protected  IHost connection
           
static String copyright
           
protected  ISystemFilterReference parentFilter
           
 
Constructor Summary
QSYSAbstractLiblAction(String text, String tooltip, ImageDescriptor image, Shell parent)
          Constructor
 
Method Summary
 boolean checkObjectType(Object selectedObject)
          Second and easiest opportunity to decide if the action should be enabled or not based on the current selection.
protected  String getSelectedLibrary()
          Return the first selected library object's name
 void setAS400Connection(IBMiConnection conn400)
          Set the connection within which this was selected...
 void setParentFilter(ISystemFilterReference filter)
          Set the libl filter reference the selected library is from
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseAction
getIBMiConnection, isAvailableOffline, updateSelection
 
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

connection

protected IHost connection

conn400

protected IBMiConnection conn400

parentFilter

protected ISystemFilterReference parentFilter
Constructor Detail

QSYSAbstractLiblAction

public QSYSAbstractLiblAction(String text,
                              String tooltip,
                              ImageDescriptor image,
                              Shell parent)
Constructor

Method Detail

setAS400Connection

public void setAS400Connection(IBMiConnection conn400)
Set the connection within which this was selected...


setParentFilter

public void setParentFilter(ISystemFilterReference filter)
Set the libl filter reference the selected library is from


checkObjectType

public boolean checkObjectType(Object selectedObject)
Second and easiest opportunity to decide if the action should be enabled or not based on the current selection. Called by default implementation of updateSelection, once for each item in the selection. If any call to this returns false, the action is disabled.

We only return true if the library's subtype ends in "-usr"


getSelectedLibrary

protected String getSelectedLibrary()
Return the first selected library object's name


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.