Rational Developer for Power Systems Software
V7.6

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

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
              extended by com.ibm.etools.iseries.rse.ui.actions.QSYSMoveUpLibraryAction
Direct Known Subclasses:
ISeriesTableViewMoveUpLibraryAction

public class QSYSMoveUpLibraryAction
extends QSYSAbstractLiblAction

The action allows users to move the currently selected library up in the library list


Field Summary
static String copyright
           
protected  String prevLibName
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSAbstractLiblAction
conn400, connection, parentFilter
 
Constructor Summary
QSYSMoveUpLibraryAction(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.
 void run()
          This is the method called when the user selects this action.
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSAbstractLiblAction
getSelectedLibrary, setAS400Connection, setParentFilter
 
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

prevLibName

protected String prevLibName
Constructor Detail

QSYSMoveUpLibraryAction

public QSYSMoveUpLibraryAction(Shell parent)
Constructor

Method Detail

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"

Overrides:
checkObjectType in class QSYSAbstractLiblAction

run

public void run()
This is the method called when the user selects this action.

See Also:
Action#run()

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.