|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTableViewer
com.ibm.etools.systems.core.ui.view.SystemTableView
This subclass of the standard JFace table viewer is used to show a generic table view of the selected object in the Systems view
TableViewer comes from com.ibm.jface.viewer
Field Summary | |
---|---|
protected SystemCommonDeleteAction |
_deleteAction
|
protected SystemOpenExplorerPerspectiveAction |
_openToPerspectiveAction
|
protected PropertyDialogAction |
_propertyDialogAction
|
protected SystemTableViewProvider |
_provider
|
protected SystemRefreshAction |
_refreshAction
|
protected SystemRemotePropertiesAction |
_remotePropertyDialogAction
|
protected SystemCommonRenameAction |
_renameAction
|
protected SystemCommonSelectAllAction |
_selectAllAction
|
protected boolean |
_selectionEnableDeleteAction
|
protected boolean |
_selectionEnableRenameAction
|
protected boolean |
_selectionFlagsUpdated
|
protected boolean |
_selectionIsRemoteObject
|
protected boolean |
_selectionShowDeleteAction
|
protected boolean |
_selectionShowOpenViewActions
|
protected boolean |
_selectionShowRefreshAction
|
protected boolean |
_selectionShowRenameAction
|
protected SystemShowInTableAction |
_showInTableAction
|
static String |
Copyright
|
protected boolean |
menuListenerAdded
|
Fields inherited from interface com.ibm.etools.systems.core.ui.ISystemDeleteTarget |
---|
copyright |
Fields inherited from interface com.ibm.etools.systems.core.ui.ISystemRenameTarget |
---|
copyright |
Fields inherited from interface com.ibm.etools.systems.model.ISystemResourceChangeListener |
---|
copyright |
Fields inherited from interface com.ibm.etools.systems.model.ISystemRemoteChangeListener |
---|
copyright |
Constructor Summary | |
---|---|
SystemTableView(Table table,
ISystemMessageLine msgLine)
Constructor for the table view |
Method Summary | |
---|---|
boolean |
canDelete()
Required method from ISystemDeleteTarget Decides whether to enable the delete menu item. |
boolean |
canRename()
Required method from ISystemRenameTarget Decides whether to enable the rename menu item. |
void |
clearMessage()
Clear message/status shown on the message/status line |
void |
computeLayout()
|
void |
computeLayout(boolean force)
Determines what columns should be shown in this view. |
void |
displayMessage(String msg)
Display a message/status on the message/status line |
void |
dispose()
|
boolean |
doDelete()
Actually do the delete of currently selected items. |
boolean |
doRename(String[] newNames)
Required method from ISystemRenameTarget |
void |
doSelectAll(IStructuredSelection selection)
When this action is run via Edit->Select All or via Ctrl+A, perform the select all action. |
boolean |
enableSelectAll(IStructuredSelection selection)
Return true if select all should be enabled for the given object. |
void |
fillContextMenu(IMenuManager menu)
|
protected ISystemViewElementAdapter |
getAdapter(Object obj)
Convenience method for retrieving the view adapter for an object |
ISystemViewElementAdapter |
getAdapterForContents()
Convenience method for retrieving the view adapter for an object's children |
SystemTableViewColumnManager |
getColumnManager()
|
Menu |
getContextMenu()
Return the popup menu for the table |
MenuManager |
getContextMenuManager()
Return the popup menu for the table |
int[] |
getCurrentColumnWidths()
|
protected IAction |
getDeleteAction()
Rather than pre-defined this common action we wait until it is first needed, for performance reasons. |
Object |
getInput()
|
int[] |
getLastColumnWidths()
|
Layout |
getLayout()
|
IPropertyDescriptor |
getNameDescriptor(Object object)
|
protected SystemOpenExplorerPerspectiveAction |
getOpenToPerspectiveAction()
Get the common "Open to->" action for opening a new Remote Systems Explorer view, scoped to the currently selected object. |
protected Object |
getParentForContent(Object element)
|
protected PropertyDialogAction |
getPropertyDialogAction()
|
protected IAction |
getRefreshAction()
Return the refresh action |
protected ISystemRemoteElementAdapter |
getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. |
protected SystemRemotePropertiesAction |
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. |
protected IAction |
getSelectAllAction()
Return the select All action |
ISelection |
getSelection()
|
Shell |
getShell()
This is the method in your class that will be called to return the shell for your viewer |
protected SystemShowInTableAction |
getShowInTableAction()
|
String[] |
getViewFilters()
|
IPropertyDescriptor[] |
getVisibleDescriptors(Object object)
Used to determine what the columns should be on the table. |
protected void |
initDragAndDrop()
|
void |
inputChanged(Object newObject,
Object oldObject)
Called whenever the input for the view changes |
void |
menuAboutToShow(IMenuManager manager)
|
void |
positionTo(String name)
|
protected void |
scanSelections()
-------------------------------------------------------------------------------- For many actions we have to walk the selection list and examine each selected object to decide if a given common action is supported or not. |
void |
selectionChanged(SelectionChangedEvent event)
|
void |
setCurrentColumnWidths(int[] widths)
|
void |
setLastColumnWidths(int[] widths)
|
void |
setViewFilters(String[] filter)
|
void |
setWorkbenchPart(IWorkbenchPart part)
|
void |
showColumns(boolean flag)
|
boolean |
showDelete()
Required method from ISystemDeleteTarget. |
boolean |
showRename()
Required method from ISystemRenameTarget. |
void |
systemRemoteResourceChanged(ISystemRemoteChangeEvent event)
This is the method in your class that will be called when a remote resource changes. |
void |
systemResourceChanged(ISystemResourceChangeEvent event)
Used to asynchronously update the view whenever properties change. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
protected SystemTableViewProvider _provider
protected SystemRefreshAction _refreshAction
protected PropertyDialogAction _propertyDialogAction
protected SystemRemotePropertiesAction _remotePropertyDialogAction
protected SystemOpenExplorerPerspectiveAction _openToPerspectiveAction
protected SystemShowInTableAction _showInTableAction
protected SystemCommonDeleteAction _deleteAction
protected SystemCommonRenameAction _renameAction
protected SystemCommonSelectAllAction _selectAllAction
protected boolean _selectionShowRefreshAction
protected boolean _selectionShowOpenViewActions
protected boolean _selectionShowDeleteAction
protected boolean _selectionShowRenameAction
protected boolean _selectionEnableDeleteAction
protected boolean _selectionEnableRenameAction
protected boolean _selectionIsRemoteObject
protected boolean _selectionFlagsUpdated
protected boolean menuListenerAdded
Constructor Detail |
public SystemTableView(Table table, ISystemMessageLine msgLine)
Method Detail |
public void showColumns(boolean flag)
public Layout getLayout()
public void setWorkbenchPart(IWorkbenchPart part)
public void setViewFilters(String[] filter)
public String[] getViewFilters()
public Menu getContextMenu()
public MenuManager getContextMenuManager()
public void inputChanged(Object newObject, Object oldObject)
public Object getInput()
protected ISystemViewElementAdapter getAdapter(Object obj)
public ISystemViewElementAdapter getAdapterForContents()
public IPropertyDescriptor[] getVisibleDescriptors(Object object)
public SystemTableViewColumnManager getColumnManager()
public IPropertyDescriptor getNameDescriptor(Object object)
public void computeLayout()
public void computeLayout(boolean force)
public int[] getCurrentColumnWidths()
public void setCurrentColumnWidths(int[] widths)
public int[] getLastColumnWidths()
public void setLastColumnWidths(int[] widths)
protected void initDragAndDrop()
public void systemResourceChanged(ISystemResourceChangeEvent event)
systemResourceChanged
in interface ISystemResourceChangeListener
ISystemResourceChangeEvent
public void systemRemoteResourceChanged(ISystemRemoteChangeEvent event)
systemRemoteResourceChanged
in interface ISystemRemoteChangeListener
ISystemRemoteChangeEvent
public void selectionChanged(SelectionChangedEvent event)
public void dispose()
protected PropertyDialogAction getPropertyDialogAction()
protected SystemRemotePropertiesAction getRemotePropertyDialogAction()
protected IAction getSelectAllAction()
protected IAction getRenameAction()
protected IAction getDeleteAction()
protected IAction getRefreshAction()
protected SystemOpenExplorerPerspectiveAction getOpenToPerspectiveAction()
protected SystemShowInTableAction getShowInTableAction()
public Shell getShell()
ISystemResourceChangeListener
getShell
in interface ISystemResourceChangeListener
public boolean showDelete()
showDelete
in interface ISystemDeleteTarget
public boolean canDelete()
canDelete
in interface ISystemDeleteTarget
public boolean doDelete()
ISystemDeleteTarget
doDelete
in interface ISystemDeleteTarget
public boolean showRename()
showRename
in interface ISystemRenameTarget
public boolean canRename()
canRename
in interface ISystemRenameTarget
protected Object getParentForContent(Object element)
public boolean doRename(String[] newNames)
doRename
in interface ISystemRenameTarget
protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
public boolean enableSelectAll(IStructuredSelection selection)
enableSelectAll
in interface ISystemSelectAllTarget
public void doSelectAll(IStructuredSelection selection)
doSelectAll
in interface ISystemSelectAllTarget
public void menuAboutToShow(IMenuManager manager)
public ISelection getSelection()
public void fillContextMenu(IMenuManager menu)
protected void scanSelections()
Walking this list multiple times while building the popup menu is a performance hit, so we have this common method that does it only once, setting instance variables for all of the decisions we are in interested in. --------------------------------------------------------------------------------
public void positionTo(String name)
public void displayMessage(String msg)
public void clearMessage()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |