Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.view.objtable
Class ObjectTableView

java.lang.Object
  extended by ViewPart
      extended by com.ibm.etools.iseries.rse.ui.view.objtable.ObjectTableView
All Implemented Interfaces:
IObjectTableConstants
Direct Known Subclasses:
PDMTableView

public class ObjectTableView
extends ViewPart
implements IObjectTableConstants

View part for the iSeries Table view class


Nested Class Summary
 class ObjectTableView.TableViewHistEntry
          Class to store the entry in history
 
Field Summary
static String copyright
           
protected  ObjTablePrintAction iseriesPrintTableViewAction
           
protected  ISeriesTableViewSelectAllAction iseriesTableViewSelectAllAction
           
protected  boolean menuListenerAdded
           
protected  Shell shell
           
protected  Table table
           
protected  ObjectTableViewProvider vcp
           
protected  ObjectTableViewer viewer
           
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.view.objtable.IObjectTableConstants
ALL, ATTRIB_DATABASE, ATTRIB_DTA, ATTRIB_SRC, BASIC_COLUMN_LAYOUTS, BASIC_COLUMN_MAPPINGS, BASIC_COLUMN_WIDTHS, BASIC_DATA_COLUMNS, BLANK, COLUMN_ATTRIBUTE, COLUMN_ATTRIBUTE_CHAR, COLUMN_CREATEDATE, COLUMN_CREATEDATE_CHAR, COLUMN_MODIFIEDDATE, COLUMN_MODIFIEDDATE_CHAR, COLUMN_NAME, COLUMN_NAME_CHAR, COLUMN_NOT_DISPLAYED, COLUMN_PROPERTIES, COLUMN_SIZE, COLUMN_SIZE_CHAR, COLUMN_TEXT, COLUMN_TEXT_CHAR, COLUMN_TYPE, COLUMN_TYPE_CHAR, Copyright, EMPTY_COLUMN_LAYOUTS, EMPTY_COLUMN_MAPPINGS, EMPTY_COLUMN_WIDTHS, EXPORT_ACTION_COLUMN_WIDTHS, EXPORT_ACTION_HEADER_UNDERLINES, EXPORT_ACTION_SPACE_HOLDERS, INDEX_SUBSET_MBR_NAME_FILTER, INDEX_SUBSET_MBR_TEXT_FILTER, INDEX_SUBSET_MBR_TYPE_FILTER, INDEX_SUBSET_OBJ_ATTRIB_FILTER, INDEX_SUBSET_OBJ_FROM_SIZE_FILTER, INDEX_SUBSET_OBJ_NAME_FILTER, INDEX_SUBSET_OBJ_TEXT_FILTER, INDEX_SUBSET_OBJ_TO_SIZE_FILTER, INDEX_SUBSET_OBJ_TYPE_FILTER, MAX_NUMBER_MBR_ADD, MAX_NUMBER_OBJ_ADD, MBR_EXTRA_COLUMN_LAYOUTS, MBR_EXTRA_COLUMN_MAPPINGS, MBR_EXTRA_COLUMN_WIDTHS, NFS_ISERIES_TABLE_VIEW, NUMBER_OF_COLUMNS, OBJ_EXTRA_COLUMN_LAYOUTS, OBJ_EXTRA_COLUMN_MAPPINGS, OBJ_EXTRA_COLUMN_WIDTHS, PROP_ATTRIB, PROP_CREATED, PROP_MODIFIED, PROP_NAME, PROP_SIZE, PROP_TEXT, PROP_TYPE, SUBSET_ASTERISK_ALL, SUBSET_ASTERISK_BACK, SUBSET_ASTERISK_FRONT, SUBSET_ASTERISK_FRONT_AND_BACK, SUBSET_ASTERISK_MIDDLE, SUBSET_EXACT, SUBSET_INVALID, TABLE_VIEW_EMPTY, TABLE_VIEW_FILTER_MBR, TABLE_VIEW_FILTER_OBJ, TABLE_VIEW_FORMAT_ALL_MBR, TABLE_VIEW_FORMAT_ALL_OBJ, TABLE_VIEW_FORMAT_CUSTOMIZED_MBR, TABLE_VIEW_FORMAT_CUSTOMIZED_OBJ, TABLE_VIEW_FORMAT_DEFAULT, TABLE_VIEW_FORMAT_EMPTY, TABLE_VIEW_GO_BACKWARD, TABLE_VIEW_GO_DOWN, TABLE_VIEW_GO_FORWARD, TABLE_VIEW_GO_UP, TABLE_VIEW_MBR, TABLE_VIEW_OBJ, TABLE_VIEW_POSITION_TO_BOTTOM, TABLE_VIEW_POSITION_TO_TOP, TABLE_VIEW_SHOW_COLUMN_ALL, TABLE_VIEW_SHOW_COLUMN_CUSTOMIZED, TABLE_VIEW_SHOW_COLUMN_DEFAULT, TABLE_VIEW_SHOW_COLUMN_UNKNOWN, TABLE_VIEW_WORK_WITH_LIB, TABLE_VIEW_WORK_WITH_MBR, TABLE_VIEW_WORK_WITH_OBJ, TAG_TABLE_VIEW_CONNECTION, TAG_TABLE_VIEW_ELEMENT, TAG_TABLE_VIEW_FILTER_STR, TAG_TABLE_VIEW_SUBSET, TAG_TABLE_VIEW_TYPE, TAG_TABLE_VIEW_WORK_WITH, TAG_TABLE_VIEW_WW_ACTION
 
Constructor Summary
ObjectTableView()
          Constructor
 
Method Summary
 void addMenuActions()
          Add actions to system dropdown menu (icon in top right corner of table view)
protected  void addSubclassActions(IMenuManager menu)
           
 void createPartControl(Composite parent)
          createPartControl called by parent
 void displayAllLibraries(IBMiConnection newConnection)
          Display all the libraries in the system after displaying a warning message
 boolean displayNewView(int iNewViewType, Object inputObj, IBMiConnection connection, boolean addToWorkWithHistory)
          Display new table view
 void dispose()
           
 void enableCmdSection()
          Method provided here so that subclass PDMTableView can override it, but called from this class.
 void fillContextMenu(IMenuManager menu)
           
 void fillLocalToolBar()
           
 void filterChanged()
          The filter settings have changed.
static String[] getColumnHeaderStr()
          return the current column mappings
static int[] getColumnMappings()
          return the current column mappings
 IBMiConnection getConnection()
          Convenience method for other classes
protected  IAction getDeleteAction()
          Rather than pre-defined this common action we wait until it is first needed, for performance reasons.
 Collator getEbcdicCollator()
           
 ISeriesAbstractTableViewFilter getFilter()
          Returns the filter for the viewer.
 boolean getLockState()
          Get the setting of lock state
 String getNewTitle()
          Construct a new title.
 QSYSObjectSubSystem getObjectSubSystem()
          Convenience method for PDMTableView class, + other classes
protected  QSYSRemotePropertiesAction getRemotePropertyDialogAction()
          Rather than pre-defining this common action we wait until it is first needed, for performance reasons.
protected  IAction getRenameAction()
          Rather than pre-defined this common action we wait until it is first needed, for performance reasons.
 boolean getRestoreFromMemento()
           
 String getSavedViewFile()
           
 String getSavedViewLib()
           
 String getSavedViewLibFilterStr()
           
 String getSavedViewMbrFilterStr()
           
 String getSavedViewObjFilterStr()
           
 Shell getShell()
           
 String[] getSubsetStates()
           
 Table getTable()
           
 ObjectTableViewProvider getViewContentProvider()
           
 ObjectTableViewer getViewer()
           
 int getViewFormat()
           
 int getViewType()
           
protected  IWorkbenchPart getWorkbenchPart()
          Get the workbench part containing this view.
 void init(IViewSite site, IMemento memento)
          Initializes this view with the given view site.
 void makeActions()
          Make toolbar actions
 void menuAboutToShow(IMenuManager menu)
          Called by parent
 void navigate(int iDirection)
          Handles forward, backward up and down request.
 boolean navigateToNewView(int iNewViewType, Object inputObj, IBMiConnection connection)
          Navigate to a new view without touching history.
 void positionTo()
          Position view.
 void saveState(IMemento memento)
          Method declared on IViewPart.
 void setColumnOderChanged()
          Set the column order has been changed and refresh the view
 void setFocus()
           
 void setPositionTo(String sPositionToName, String sPositionToType)
          Returns the filter for the viewer.
 void setSavedViewFile(String savedViewFile)
           
 void setSavedViewLib(String savedViewLib)
           
 void setSavedViewLibFilterStr(String savedViewLibFilterStr)
           
 void setSavedViewMbrFilterStr(String savedViewMbrFilterStr)
           
 void setSavedViewObjFilterStr(String savedViewObjFilterStr)
           
 void setSubsetStates(String[] aSubsetStates)
           
 void setViewType(int iNewViewType)
           
 void showAll()
          The filter settings have changed.
 void showColumns(int columnType)
          Show the column type requested from the show column action
 void showLock()
           
 void systemModelResourceChanged(ISystemModelChangeEvent event)
          Listen to when 1) filter is deleted or renamed or changed.
 void systemRemoteResourceChanged(ISystemRemoteChangeEvent event)
          Called when something changes in the model
 void systemResourceChanged(ISystemResourceChangeEvent event)
           
 void toggleFormat()
          This method is used to handle F14 In PDM F14 is for toggle between size/attribute for object list and between date/type for member list.
 void toggleLockState()
          Change the setting of lock state
 void unCheckAllWorkWithHistory()
          Uncheck all entries so that a new one can be checked
 void updateActionStates()
           
 void updateSubsetStates()
           
 void updateTitle()
           
 
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

table

protected Table table

shell

protected Shell shell

viewer

protected ObjectTableViewer viewer

vcp

protected ObjectTableViewProvider vcp

iseriesPrintTableViewAction

protected ObjTablePrintAction iseriesPrintTableViewAction

iseriesTableViewSelectAllAction

protected ISeriesTableViewSelectAllAction iseriesTableViewSelectAllAction

menuListenerAdded

protected boolean menuListenerAdded
Constructor Detail

ObjectTableView

public ObjectTableView()
Constructor

Method Detail

getViewer

public ObjectTableViewer getViewer()

setFocus

public void setFocus()

createPartControl

public void createPartControl(Composite parent)
createPartControl called by parent


init

public void init(IViewSite site,
                 IMemento memento)
          throws PartInitException
Initializes this view with the given view site. A memento is passed to the view which contains a snapshot of the views state from a previous session. Where possible, the view should try to recreate that state within the part controls.

The parent's default implementation will ignore the memento and initialize the view in a fresh state. Subclasses may override the implementation to perform any state restoration as needed.

Throws:
PartInitException

saveState

public void saveState(IMemento memento)
Method declared on IViewPart.


makeActions

public void makeActions()
Make toolbar actions


menuAboutToShow

public void menuAboutToShow(IMenuManager menu)
Called by parent


fillLocalToolBar

public void fillLocalToolBar()

fillContextMenu

public void fillContextMenu(IMenuManager menu)

getWorkbenchPart

protected IWorkbenchPart getWorkbenchPart()
Get the workbench part containing this view. Will only be non-null for the explorer view part, not when used within, say, a dialog


getShell

public Shell getShell()

dispose

public void dispose()

getNewTitle

public String getNewTitle()
Construct a new title. (This method should be able to determine if subset filters are active and account for those in the title.) The Table Print and Export actions also call this method to obtain the title string for their outputs. This is different from the parent .getTitle() which returns the last-set title from the view.


updateTitle

public void updateTitle()

getRemotePropertyDialogAction

protected QSYSRemotePropertiesAction getRemotePropertyDialogAction()
Rather than pre-defining this common action we wait until it is first needed, for performance reasons.


getRenameAction

protected IAction getRenameAction()
Rather than pre-defined this common action we wait until it is first needed, for performance reasons.


getDeleteAction

protected IAction getDeleteAction()
Rather than pre-defined this common action we wait until it is first needed, for performance reasons.


showAll

public void showAll()
The filter settings have changed. Refreshes the viewer and title bar.


filterChanged

public void filterChanged()
The filter settings have changed. Refreshes the viewer and title bar.


positionTo

public void positionTo()
Position view.


getFilter

public ISeriesAbstractTableViewFilter getFilter()
Returns the filter for the viewer.


setPositionTo

public void setPositionTo(String sPositionToName,
                          String sPositionToType)
Returns the filter for the viewer.


getTable

public Table getTable()

getViewType

public int getViewType()

getViewFormat

public int getViewFormat()

setViewType

public void setViewType(int iNewViewType)

getSubsetStates

public String[] getSubsetStates()

setSubsetStates

public void setSubsetStates(String[] aSubsetStates)

updateSubsetStates

public void updateSubsetStates()

displayNewView

public boolean displayNewView(int iNewViewType,
                              Object inputObj,
                              IBMiConnection connection,
                              boolean addToWorkWithHistory)
Display new table view


unCheckAllWorkWithHistory

public void unCheckAllWorkWithHistory()
Uncheck all entries so that a new one can be checked


navigateToNewView

public boolean navigateToNewView(int iNewViewType,
                                 Object inputObj,
                                 IBMiConnection connection)
Navigate to a new view without touching history.

Parameters:
connection - Value will be ignored when the connection can be determined from the inputObj. (Ok to pass null then.) Value is required for filter strings.

enableCmdSection

public void enableCmdSection()
Method provided here so that subclass PDMTableView can override it, but called from this class. Enable the whole Command section on the PDM Style Object Table View


addMenuActions

public void addMenuActions()
Add actions to system dropdown menu (icon in top right corner of table view)


addSubclassActions

protected void addSubclassActions(IMenuManager menu)

toggleFormat

public void toggleFormat()
This method is used to handle F14 In PDM F14 is for toggle between size/attribute for object list and between date/type for member list. Here we toggle between All and whatever was set before the toggle


navigate

public void navigate(int iDirection)
Handles forward, backward up and down request.


displayAllLibraries

public void displayAllLibraries(IBMiConnection newConnection)
Display all the libraries in the system after displaying a warning message


toggleLockState

public void toggleLockState()
Change the setting of lock state


getLockState

public boolean getLockState()
Get the setting of lock state


showLock

public void showLock()

updateActionStates

public void updateActionStates()

getColumnMappings

public static int[] getColumnMappings()
return the current column mappings


getColumnHeaderStr

public static String[] getColumnHeaderStr()
return the current column mappings


setColumnOderChanged

public void setColumnOderChanged()
Set the column order has been changed and refresh the view


showColumns

public void showColumns(int columnType)
Show the column type requested from the show column action

Parameters:
columnType -

systemModelResourceChanged

public void systemModelResourceChanged(ISystemModelChangeEvent event)
Listen to when 1) filter is deleted or renamed or changed. d53107 2) connection is deleted or renamed d53082 If impacted, update content, or history list accordingly.

Parameters:
event -

systemRemoteResourceChanged

public void systemRemoteResourceChanged(ISystemRemoteChangeEvent event)
Called when something changes in the model


systemResourceChanged

public void systemResourceChanged(ISystemResourceChangeEvent event)
Parameters:
event - Note: Child class PDMTableView overrides this method to handle events for commands; but calls back here for unhandled events.

getEbcdicCollator

public Collator getEbcdicCollator()

getConnection

public IBMiConnection getConnection()
Convenience method for other classes


getObjectSubSystem

public QSYSObjectSubSystem getObjectSubSystem()
Convenience method for PDMTableView class, + other classes


getViewContentProvider

public ObjectTableViewProvider getViewContentProvider()
Returns:
the vcp

getSavedViewLibFilterStr

public String getSavedViewLibFilterStr()
Returns:
the savedViewLibFilterStr

setSavedViewLibFilterStr

public void setSavedViewLibFilterStr(String savedViewLibFilterStr)
Parameters:
savedViewLibFilterStr - the savedViewLibFilterStr to set

getSavedViewObjFilterStr

public String getSavedViewObjFilterStr()
Returns:
the savedViewObjFilterStr

setSavedViewObjFilterStr

public void setSavedViewObjFilterStr(String savedViewObjFilterStr)
Parameters:
savedViewObjFilterStr - the savedViewObjFilterStr to set

getSavedViewMbrFilterStr

public String getSavedViewMbrFilterStr()
Returns:
the savedViewMbrFilterStr

setSavedViewMbrFilterStr

public void setSavedViewMbrFilterStr(String savedViewMbrFilterStr)
Parameters:
savedViewMbrFilterStr - the savedViewMbrFilterStr to set

getSavedViewLib

public String getSavedViewLib()
Returns:
the savedViewLib

setSavedViewLib

public void setSavedViewLib(String savedViewLib)
Parameters:
savedViewLib - the savedViewLib to set

getSavedViewFile

public String getSavedViewFile()
Returns:
the savedViewFile

setSavedViewFile

public void setSavedViewFile(String savedViewFile)
Parameters:
savedViewFile - the savedViewFile to set

getRestoreFromMemento

public boolean getRestoreFromMemento()
Returns:
the restoreFromMemento

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.