iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.core.ui.view
Class ISeriesLibTableViewer

java.lang.Object
  extended byorg.eclipse.jface.viewers.Viewer
      extended byorg.eclipse.jface.viewers.ContentViewer
          extended byorg.eclipse.jface.viewers.StructuredViewer
              extended byorg.eclipse.jface.viewers.TableViewer
                  extended bycom.ibm.etools.iseries.core.ui.view.ISeriesLibTableViewer
All Implemented Interfaces:
IInputProvider, IInputSelectionProvider, IPostSelectionProvider, ISelectionProvider, com.ibm.etools.systems.core.ui.ISystemDeleteTarget, com.ibm.etools.systems.core.ui.ISystemRenameTarget

public class ISeriesLibTableViewer
extends TableViewer
implements com.ibm.etools.systems.core.ui.ISystemRenameTarget, com.ibm.etools.systems.core.ui.ISystemDeleteTarget


Field Summary
static String Copyright
           
 
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
 
Fields inherited from interface com.ibm.etools.systems.core.ui.ISystemRenameTarget
copyright
 
Fields inherited from interface com.ibm.etools.systems.core.ui.ISystemDeleteTarget
copyright
 
Constructor Summary
ISeriesLibTableViewer(Composite parent)
           
ISeriesLibTableViewer(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 doRename(String[] newNames)
          Actually do the rename of currently selected items.
protected  com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter getAdapter(Object o)
          Returns the implementation of ISystemViewElement for the given object.
 FileSubSystemImpl getFileSubSystemImpl()
           
protected  com.ibm.etools.systems.core.ui.view.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  void initDragAndDrop()
          Drag and drop initialization.
 void setFileSubSystemImpl(FileSubSystemImpl fileSubSystemImpl)
           
 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 org.eclipse.jface.viewers.TableViewer
add, add, cancelEditing, doFindInputItem, doFindItem, doUpdateItem, editElement, getCellEditors, getCellModifier, getColumnProperties, getControl, getElementAt, getLabelProvider, getSelectionFromWidget, getTable, hookControl, indexForElement, inputChanged, insert, internalRefresh, internalRefresh, isCellEditorActive, remove, remove, reveal, setCellEditors, setCellModifier, setColumnProperties, setLabelProvider, setSelectionToWidget
 
Methods inherited from class org.eclipse.jface.viewers.StructuredViewer
addDoubleClickListener, addDragSupport, addDropSupport, addFilter, addOpenListener, addPostSelectionChangedListener, assertElementsNotNull, associate, disassociate, equals, filter, findItem, fireDoubleClick, fireOpen, firePostSelectionChanged, getComparer, getFilteredChildren, getFilters, getItem, getRawChildren, getRoot, getSelection, getSortedChildren, getSorter, handleDoubleSelect, handleInvalidSelection, handleLabelProviderChanged, handleOpen, handlePostSelect, handleSelect, hasFilters, mapElement, needsRefilter, preservingSelection, refresh, refresh, refresh, refresh, refreshItem, removeDoubleClickListener, removeFilter, removeOpenListener, removePostSelectionChangedListener, resetFilters, setComparer, setContentProvider, setInput, setSelection, setSelectionToWidget, setSorter, setUseHashlookup, testFindItem, unmapAllElements, unmapElement, unmapElement, update, update, updateItem, updateSelection, usingElementMap
 
Methods inherited from class org.eclipse.jface.viewers.ContentViewer
getContentProvider, getInput, handleDispose, labelProviderChanged
 
Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider
addSelectionChangedListener, getSelection, removeSelectionChangedListener, setSelection
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

ISeriesLibTableViewer

public ISeriesLibTableViewer(Composite parent)

ISeriesLibTableViewer

public ISeriesLibTableViewer(Table table)
Method Detail

showDelete

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

Specified by:
showDelete in interface com.ibm.etools.systems.core.ui.ISystemDeleteTarget

canDelete

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

Specified by:
canDelete in interface com.ibm.etools.systems.core.ui.ISystemDeleteTarget

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)

Specified by:
doDelete in interface com.ibm.etools.systems.core.ui.ISystemDeleteTarget

showRename

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

Specified by:
showRename in interface com.ibm.etools.systems.core.ui.ISystemRenameTarget

canRename

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

Specified by:
canRename in interface com.ibm.etools.systems.core.ui.ISystemRenameTarget

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)

Specified by:
doRename in interface com.ibm.etools.systems.core.ui.ISystemRenameTarget

getShell

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


getAdapter

protected com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter getAdapter(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 com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. Returns null if this object does not adaptable to this.


getFileSubSystemImpl

public FileSubSystemImpl getFileSubSystemImpl()

setFileSubSystemImpl

public void setFileSubSystemImpl(FileSubSystemImpl fileSubSystemImpl)

initDragAndDrop

protected void initDragAndDrop()
Drag and drop initialization.


iSeries Remote Systems
v6.0.0

Copyright © 2005 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.