Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.search
Class ISeriesSearchAction

java.lang.Object
  extended by SystemBaseDialogAction
      extended by com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseDialogAction
          extended by com.ibm.etools.iseries.rse.ui.search.ISeriesSearchAction

public class ISeriesSearchAction
extends QSYSSystemBaseDialogAction

This is the action that will put up a dialog for users to specify a string to be used for searching the selected object which can be filter library, file or member. It then calls another class to do the actual searching. For libraries, they are resolved to files first and for filters, they are resolved to lib/file/mbr.


Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseDialogAction
copyright
 
Constructor Summary
ISeriesSearchAction(Shell parent)
          Constructor
 
Method Summary
protected  boolean addElementsFromFilterStrToTargetList(String[] filterStrings, IBMiConnection iseriesConn)
          Resolve the filter strings to data elements.
protected  void addElementToTargetList(IQSYSResource element, boolean searchByMember)
          Add the element to the target list
 Dialog createDialog(Shell shell)
          This method builds two lists from the selected items: - one contains either valid lib/file/mbr data elements or filter strings obtained from filters.
protected  Object getDialogValue(Dialog dlg)
          We use the default inherited actionPerformed method, which calls this method after the dialog is closed in order to retrieve the dialog's data.
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseDialogAction
getIBMiConnection, 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
Constructor Detail

ISeriesSearchAction

public ISeriesSearchAction(Shell parent)
Constructor

Method Detail

createDialog

public Dialog createDialog(Shell shell)
This method builds two lists from the selected items: - one contains either valid lib/file/mbr data elements or filter strings obtained from filters. This list is for doing searching - one contains the target list to be displayed in the search dialog


getDialogValue

protected Object getDialogValue(Dialog dlg)
We use the default inherited actionPerformed method, which calls this method after the dialog is closed in order to retrieve the dialog's data. This is then placed in this object's value property and can be retrieved publicly via getValue().

We overload this to also actually run the command remotely.


addElementToTargetList

protected void addElementToTargetList(IQSYSResource element,
                                      boolean searchByMember)
Add the element to the target list

Parameters:
element - - must be a file or member
searchByMember - - true if the element is member. We already know the answer before the call

addElementsFromFilterStrToTargetList

protected boolean addElementsFromFilterStrToTargetList(String[] filterStrings,
                                                       IBMiConnection iseriesConn)
Resolve the filter strings to data elements. If they libraries, they are further resolved to members or files. These data element are added to the lib/file/mbr array by calling the addElementToTargetList method

Parameters:
filter - string array obtained from filters.
Returns:
continue or not true means continue

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.