Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by TableViewer
      extended by com.ibm.etools.iseries.rse.ui.view.objtable.ObjectTableViewer

public class ObjectTableViewer
extends TableViewer


Field Summary
static String Copyright
           
 
Constructor Summary
ObjectTableViewer(org.eclipse.swt.widgets.Composite parent)
           
ObjectTableViewer(Table table)
           
 
Method Summary
 boolean canDelete()
          Return true if delete should be enabled based on your current selection.
 boolean canRename()
          Return true if rename should be enabled based on your current selection.
 boolean doDelete()
          Actually do the delete of currently selected items.
 boolean doDelete(IProgressMonitor monitor)
           
 boolean doRename(String[] newNames)
          Actually do the rename of currently selected items.
 IBMiConnection getIBMiConnection()
          Returns value based on current viewer input.
 IHost getIHost()
          Returns value based on current viewer input.
 QSYSObjectSubSystem getObjectSubSystem()
          Returns value based on current viewer input.
protected  ISystemRemoteElementAdapter getRemoteAdapter(Object o)
          Returns the implementation of ISystemRemoteElement for the given object.
 Shell getShell()
          Convenience method for returning the shell of this viewer.
protected  ISystemViewElementAdapter getViewAdapter(Object o)
          Returns the implementation of ISystemViewElement for the given object.
protected  void initDragAndDrop()
          Drag and drop initialization.
 void setSorter(ViewerSorter newSorter)
           
 void setSorter(ViewerSorter newSorter, TableColumn sortColumn, org.eclipse.swt.graphics.Image sortImage)
           
 boolean showDelete()
          Return true if delete should even be shown in the popup menu
 boolean showRename()
          Return true if rename should even be shown in the popup menu
 
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

ObjectTableViewer

public ObjectTableViewer(org.eclipse.swt.widgets.Composite parent)

ObjectTableViewer

public ObjectTableViewer(Table table)
Method Detail

showDelete

public boolean showDelete()
Return true if delete should even be shown in the popup menu


canDelete

public boolean canDelete()
Return true if delete should be enabled based on your current selection.


doDelete

public boolean doDelete()
Actually do the delete of currently selected items. Return true if it worked. Return false if it didn't (you display msg), or throw an exception (framework displays msg)


showRename

public boolean showRename()
Return true if rename should even be shown in the popup menu


canRename

public boolean canRename()
Return true if rename should be enabled based on your current selection.


doRename

public boolean doRename(String[] newNames)
Actually do the rename of currently selected items. The array of new names matches the currently selected items. Return true if it worked. Return false if it didn't (you display msg), or throw an exception (framework displays msg)


getShell

public Shell getShell()
Convenience method for returning the shell of this viewer.


getViewAdapter

protected ISystemViewElementAdapter getViewAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. Returns null if the adapter is not defined or the object is not adaptable.


getRemoteAdapter

protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. Returns null if this object does not adaptable to this.


initDragAndDrop

protected void initDragAndDrop()
Drag and drop initialization.


doDelete

public boolean doDelete(IProgressMonitor monitor)

getIBMiConnection

public IBMiConnection getIBMiConnection()
Returns value based on current viewer input. May return null.


getIHost

public IHost getIHost()
Returns value based on current viewer input. May return null.


getObjectSubSystem

public QSYSObjectSubSystem getObjectSubSystem()
Returns value based on current viewer input. May return null.


setSorter

public void setSorter(ViewerSorter newSorter)

setSorter

public void setSorter(ViewerSorter newSorter,
                      TableColumn sortColumn,
                      org.eclipse.swt.graphics.Image sortImage)

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.