Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui
Class QSYSViewHelpers

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.QSYSViewHelpers

public class QSYSViewHelpers
extends Object

Static helper methods related to the Remote Systems view, and iSeries stuff.


Nested Class Summary
static class QSYSViewHelpers.RevealAndSelectUIJob
           
static class QSYSViewHelpers.RevealAndSelectUIJobSync
           
 
Field Summary
static String copyright
           
 
Constructor Summary
QSYSViewHelpers()
          Constructor for ISeriesViewHelpers.
 
Method Summary
static SystemViewPart activateSystemView()
           
static ISystemViewElementAdapter getAdapter(IAdaptable adaptable)
           
static IRunnableContext getRunnableContext()
          Returns a progress monitor context.
static boolean selectAndReveal(SystemView rsView, IBMiConnection conn400, String absNameOfObjectToReveal)
          Static helper method to show a given iSeries native file system object, in the given Remote Systems view instance.
static boolean selectAndReveal(SystemView rsView, IBMiConnection conn400, String absNameOfObjectToReveal, boolean useAppropriateFilter)
           
static boolean selectAndReveal(SystemView rsView, IBMiConnection conn400, String absNameOfObjectToReveal, boolean useAppropriateFilter, IQSYSViewHelperStatusHandler statusHandler)
          Static helper method to show a given iSeries native file system object, in the given Remote Systems view instance.
 
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

QSYSViewHelpers

public QSYSViewHelpers()
Constructor for ISeriesViewHelpers.

Method Detail

selectAndReveal

public static boolean selectAndReveal(SystemView rsView,
                                      IBMiConnection conn400,
                                      String absNameOfObjectToReveal)
Static helper method to show a given iSeries native file system object, in the given Remote Systems view instance.

This flavour takes an absolute object name.

This reveals and selects the given object. The trick is what filter to use. For this, we look for a filter with the default filter name for the object's library. If found, we expand it enough to reveal, and select, the given object. If not found, we create it.

Returns:
true if object found and revealed. False if this object is not something we can find. Eg, if given a message object (vs description) we can't really find it in the file system, so we return null.

selectAndReveal

public static boolean selectAndReveal(SystemView rsView,
                                      IBMiConnection conn400,
                                      String absNameOfObjectToReveal,
                                      boolean useAppropriateFilter,
                                      IQSYSViewHelperStatusHandler statusHandler)
Static helper method to show a given iSeries native file system object, in the given Remote Systems view instance.

This flavour takes an absolute object name, and uses a type-specific filter versus just a library filter.

This reveals and selects the given object.For libraries, we use a library filter with the default lib name, for objects, we use an object filter scoped to the object type, incorporating that into the name. For records and fields we also use a file object filter and then expand the appropriate file as needed. For members, we use a member filter for the given parent.

Returns:
true if object found and revealed. False if this object is not something we can find. Eg, if given a message object (vs description) we can't really find it in the file system, so we return null. Notice: this method is only used by business partner for now.

selectAndReveal

public static boolean selectAndReveal(SystemView rsView,
                                      IBMiConnection conn400,
                                      String absNameOfObjectToReveal,
                                      boolean useAppropriateFilter)

getRunnableContext

public static IRunnableContext getRunnableContext()
Returns a progress monitor context.


getAdapter

public static ISystemViewElementAdapter getAdapter(IAdaptable adaptable)

activateSystemView

public static SystemViewPart activateSystemView()

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.