Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.uda
Class SystemUDBaseTreeView

java.lang.Object
  extended byTreeViewer
      extended bycom.ibm.etools.systems.core.ui.uda.SystemUDBaseTreeView
All Implemented Interfaces:
ISystemMessages, ISystemUDTreeView
Direct Known Subclasses:
SystemUDActionTreeView, SystemUDTypeTreeView

public class SystemUDBaseTreeView
extends TreeViewer
implements ISystemMessages, ISystemUDTreeView

Base class for tree views for both actions and types.

See Also:
Serialized Form

Field Summary
protected  Clipboard clipboard
           
protected  SystemUDTreeActionCopy copyAction
           
static String copyright
           
protected  SystemUDTreeActionDelete deleteAction
           
protected  SystemUDBaseManager docManager
           
protected  boolean menuListenerAdded
           
protected  MenuManager menuMgr
           
protected  SystemUDTreeActionMoveDown moveDownAction
           
protected  SystemUDTreeActionMoveUp moveUpAction
           
protected  Composite parent
           
protected  SystemUDTreeActionPaste pasteAction
           
protected  SystemProfile profile
           
protected  SystemUDARestoreDefaultsActions restoreAction
           
protected  SubSystem subsystem
           
protected  SubSystemFactory subsystemFactory
           
protected  ISystemUDWorkWithDialog wwDialog
           
 
Fields inherited from interface com.ibm.etools.systems.core.ISystemMessages
FILEMSG_ARCHIVE_CORRUPTED, FILEMSG_COPY_FILE_FAILED, FILEMSG_COPY_ROOT, FILEMSG_CREATE_FILE_FAILED, FILEMSG_CREATE_FILE_FAILED_EXIST, FILEMSG_CREATE_FOLDER_FAILED, FILEMSG_CREATE_FOLDER_FAILED_EXIST, FILEMSG_CREATE_RESOURCE_NOTVISIBLE, FILEMSG_DELETE_FILE_FAILED, FILEMSG_DELETING, FILEMSG_DESTINATION_CONFLICTING, FILEMSG_DESTINATION_EMPTY, FILEMSG_ERROR_NOFILETYPES, FILEMSG_EXPORT_ERROR, FILEMSG_EXPORT_FAILED, FILEMSG_EXPORT_NONE_SELECTED, FILEMSG_EXPORT_PROBLEMS, FILEMSG_FILE_NOTFOUND, FILEMSG_FOLDER_IS_FILE, FILEMSG_FOLDER_NOTEMPTY, FILEMSG_FOLDER_NOTFOUND, FILEMSG_FOLDER_NOTFOUND_WANTTOCREATE, FILEMSG_IMPORT_ERROR, FILEMSG_IMPORT_FAILED, FILEMSG_IMPORT_FILTERING, FILEMSG_IMPORT_NONE_SELECTED, FILEMSG_IMPORT_PROBLEMS, FILEMSG_IMPORT_SELF, FILEMSG_IO_ERROR, FILEMSG_MOVE_FILE_FAILED, FILEMSG_MOVE_TARGET_DESCENDS_FROM_SOUCE, FILEMSG_MOVE_TARGET_EQUALS_SOURCE, FILEMSG_NOT_WRITABLE, FILEMSG_RENAME_FILE_FAILED, FILEMSG_RENAME_RESOURCE_NOTVISIBLE, FILEMSG_SECURITY_ERROR, FILEMSG_SOURCE_EMPTY, FILEMSG_SOURCE_IS_FILE, FILEMSG_TARGET_EXISTS, FILEMSG_VALIDATE_FILEFILTERSTRING_EMPTY, FILEMSG_VALIDATE_FILEFILTERSTRING_NOINCLUDES, FILEMSG_VALIDATE_FILEFILTERSTRING_NOTUNIQUE, FILEMSG_VALIDATE_FILEFILTERSTRING_NOTVALID, MSG_ADDTO_VIRTUAL_DEST, MSG_CACHE_UNABLE_TO_SYNCH, MSG_CACHE_UPLOAD_BEFORE_DELETE, MSG_COMBINETO_VIRTUAL_DEST, MSG_COMM_AUTH_FAILED, MSG_COMM_CLIENT_OLDER_WARNING, MSG_COMM_CONNECT_FAILED, MSG_COMM_DAEMON_NOTSTARTED, MSG_COMM_ENVVAR_DUPLICATE, MSG_COMM_ENVVAR_INVALIDCHAR, MSG_COMM_ENVVAR_NONAME, MSG_COMM_INCOMPATIBLE_PROTOCOL, MSG_COMM_INCOMPATIBLE_UPDATE, MSG_COMM_INVALID_LOGIN, MSG_COMM_PORT_WARNING, MSG_COMM_PWD_BLANKFIELD, MSG_COMM_PWD_EXISTS, MSG_COMM_PWD_INVALID, MSG_COMM_PWD_MISMATCH, MSG_COMM_REXEC_NOTSTARTED, MSG_COMM_SERVER_NOTSTARTED, MSG_COMM_SERVER_OLDER_WARNING, MSG_CONFIRM_CHANGES, MSG_CONFIRM_CHANGES_CANCELABLE, MSG_CONFIRM_DELETE, MSG_CONFIRM_DELETE_USERACTION, MSG_CONFIRM_DELETE_USERTYPE, MSG_CONFIRM_DELETEPROFILE, MSG_CONFIRM_DELETEREMOTE, MSG_CONFIRM_ENABLE_CLASSIC_HELP, MSG_CONFIRM_RELOADRSE, MSG_CONNECT_CANCELLED, MSG_CONNECT_DAEMON_FAILED, MSG_CONNECT_DAEMON_FAILED_EXCEPTION, MSG_CONNECT_FAILED, MSG_CONNECT_PROGRESS, MSG_CONNECT_SSL_EXCEPTION, MSG_CONNECT_UNKNOWNHOST, MSG_CONNECTING_TO_SERVER, MSG_CONNECTION_DELETED, MSG_CONNECTWITHPORT_PROGRESS, MSG_CONVERTTO_VIRTUAL_DEST, MSG_COPY_PROGRESS, MSG_COPYCONNECTION_PROGRESS, MSG_COPYCONNECTIONS_PROGRESS, MSG_COPYFILTER_PROGRESS, MSG_COPYFILTERPOOL_COMPLETE, MSG_COPYFILTERPOOL_PROGRESS, MSG_COPYFILTERPOOLS_PROGRESS, MSG_COPYFILTERS_PROGRESS, MSG_COPYFILTERSTRING_PROGRESS, MSG_COPYFILTERSTRINGS_PROGRESS, MSG_COPYGENERIC_PROGRESS, MSG_COPYSUBSYSTEMS_PROGRESS, MSG_COPYTHINGGENERIC_PROGRESS, MSG_DEST_NOT_IN_SOURCE, MSG_DEST_TARGET_READONLY, MSG_DISCONNECT_CANCELLED, MSG_DISCONNECT_FAILED, MSG_DISCONNECT_PROGRESS, MSG_DISCONNECTWITHPORT_PROGRESS, MSG_DOWNLOAD_ALREADY_OPEN_IN_EDITOR, MSG_DOWNLOAD_NO_WRITE, MSG_DOWNLOAD_PROGRESS, MSG_DOWNLOADING_PROGRESS, MSG_ERROR_CONNECTION_NOTFOUND, MSG_ERROR_ENABLE_CLASSIC_HELP, MSG_ERROR_EXTENSION_EMPTY, MSG_ERROR_FILE_NOTFOUND, MSG_ERROR_FILENAME_INVALID, MSG_ERROR_FOLDER_NOTFOUND, MSG_ERROR_FOLDERORFILE_NOTFOUND, MSG_ERROR_GENERAL, MSG_ERROR_LIST_TITLE, MSG_ERROR_PROFILE_NOTFOUND, MSG_ERROR_UNEXPECTED, MSG_EXCEPTION_DELETING, MSG_EXCEPTION_MOVING, MSG_EXCEPTION_OCCURRED, MSG_EXCEPTION_RENAMING, MSG_EXPAND_CANCELLED, MSG_EXPAND_CONNECTIONCREATED, MSG_EXPAND_EMPTY, MSG_EXPAND_FAILED, MSG_EXPAND_FILTERCREATED, MSG_EXPAND_PREFIX, MSG_EXTRACT_PROGRESS, MSG_FILE_INUSE, MSG_FILTERPOOL_CREATED, MSG_FOLDER_INUSE, MSG_GENERIC_E, MSG_GENERIC_E_HELP, MSG_GENERIC_E_TWOPARMS_HELP, MSG_GENERIC_I, MSG_GENERIC_I_HELP, MSG_GENERIC_I_TWOPARMS_HELP, MSG_GENERIC_Q, MSG_GENERIC_Q_HELP, MSG_GENERIC_Q_TWOPARMS_HELP, MSG_GENERIC_U, MSG_GENERIC_U_HELP, MSG_GENERIC_U_TWOPARMS_HELP, MSG_GENERIC_W, MSG_GENERIC_W_HELP, MSG_GENERIC_W_TWOPARMS_HELP, MSG_HOSTNAME_NOTFOUND, MSG_HOSTNAME_VERIFYING, MSG_IMPORT_EXPORT_UNABLE_TO_USE_CONNECTION, MSG_IMPORT_EXPORT_UNEXPECTED_EXCEPTION, MSG_INITIALIZING_SERVER, MSG_LIST_CANCELLED, MSG_LIST_PREFIX, MSG_LOADING_PROFILE_SHOULDBE_ACTIVATED, MSG_LOADING_PROFILE_SHOULDNOTBE_DEACTIVATED, MSG_MOVE_PROGRESS, MSG_MOVECONNECTION_PROGRESS, MSG_MOVECONNECTIONS_PROGRESS, MSG_MOVEFILTER_PROGRESS, MSG_MOVEFILTERPOOL_COMPLETE, MSG_MOVEFILTERPOOL_PROGRESS, MSG_MOVEFILTERPOOLS_PROGRESS, MSG_MOVEFILTERS_PROGRESS, MSG_MOVEFILTERSTRING_PROGRESS, MSG_MOVEFILTERSTRINGS_PROGRESS, MSG_MOVEGENERIC_PROGRESS, MSG_MOVETHINGGENERIC_PROGRESS, MSG_OFFLINE_CANT_CONNECT, MSG_OPERATION_CANCELLED, MSG_OPERATION_DISCONNECTED, MSG_OPERATION_FAILED, MSG_OPERATION_FINISHED, MSG_OPERATION_RUNNING, MSG_OPERTION_STOPPED, MSG_PERCENT_DONE, MSG_PREFIX, MSG_QUERY_PROGRESS, MSG_QUERY_PROPERTIES_PROGRESS, MSG_REMOTE_JAR_EXPORT_OVERWRITE_FILE, MSG_REMOTE_SEARCH_INVALID_REGEX, MSG_RENAMEFILTER_FAILED, MSG_RESOLVE_PROGRESS, MSG_RESTORE_FAILED, MSG_RUN_PROGRESS, MSG_SAVE_CHANGES_PENDING, MSG_SAVE_FAILED, MSG_SAVING_PROGRESS, MSG_SET_PROGRESS, MSG_SET_PROPERTIES_PROGRESS, MSG_STARTING_SERVER_VIA_DAEMON, MSG_STARTING_SERVER_VIA_REXEC, MSG_SYNCHRONIZE_PROGRESS, MSG_TRANSFER_INVALID, MSG_UCMD_INVOCATION_EMPTY, MSG_UDA_LOAD_ERROR, MSG_UDA_ROOTTAG_ERROR, MSG_UFF_PATTERN_EMPTY, MSG_UFF_PATTERN_INVALID_REGEX, MSG_UNDERCONSTRUCTION, MSG_UPDATEFILTER_FAILED, MSG_UPLOAD_FILE_EXISTS, MSG_UPLOAD_PROGRESS, MSG_UPLOADING_PROGRESS, MSG_VALIDATE_ARCHIVE_NAME, MSG_VALIDATE_COMPILELABEL_EMPTY, MSG_VALIDATE_COMPILELABEL_NOTUNIQUE, MSG_VALIDATE_COMPILELABEL_NOTVALID, MSG_VALIDATE_COMPILESTRING_EMPTY, MSG_VALIDATE_COMPILESTRING_NOTVALID, MSG_VALIDATE_CONNECTIONNAME_EMPTY, MSG_VALIDATE_CONNECTIONNAME_NOTUNIQUE, MSG_VALIDATE_CONNECTIONNAME_NOTUNIQUE_OTHERPROFILE, MSG_VALIDATE_CONNECTIONNAME_NOTVALID, MSG_VALIDATE_ENTRY_EMPTY, MSG_VALIDATE_ENTRY_NOTUNIQUE, MSG_VALIDATE_ENTRY_NOTVALID, MSG_VALIDATE_FILENAME_NOTVALID, MSG_VALIDATE_FILTERNAME_EMPTY, MSG_VALIDATE_FILTERNAME_NOTUNIQUE, MSG_VALIDATE_FILTERNAME_NOTVALID, MSG_VALIDATE_FILTERPOOLNAME_EMPTY, MSG_VALIDATE_FILTERPOOLNAME_NOTUNIQUE, MSG_VALIDATE_FILTERPOOLNAME_NOTVALID, MSG_VALIDATE_FILTERSTRING_ALREADYEXISTS, MSG_VALIDATE_FILTERSTRING_DUPLICATES, MSG_VALIDATE_FILTERSTRING_EMPTY, MSG_VALIDATE_FILTERSTRING_NOTUNIQUE, MSG_VALIDATE_FILTERSTRING_NOTVALID, MSG_VALIDATE_FOLDERNAME_NOTVALID, MSG_VALIDATE_HOSTNAME_EMPTY, MSG_VALIDATE_NAME_EMPTY, MSG_VALIDATE_NAME_NOTUNIQUE, MSG_VALIDATE_NAME_NOTVALID, MSG_VALIDATE_NOT_NUMERIC, MSG_VALIDATE_NUMBER_EMPTY, MSG_VALIDATE_NUMBER_NOTVALID, MSG_VALIDATE_NUMBER_OUTOFRANGE, MSG_VALIDATE_PASSWORD_EMPTY, MSG_VALIDATE_PASSWORD_EXPIRED, MSG_VALIDATE_PATH_EMPTY, MSG_VALIDATE_PATH_NOTUNIQUE, MSG_VALIDATE_PATH_NOTVALID, MSG_VALIDATE_PORT_EMPTY, MSG_VALIDATE_PORT_NOTVALID, MSG_VALIDATE_PROFILENAME_EMPTY, MSG_VALIDATE_PROFILENAME_NOTUNIQUE, MSG_VALIDATE_PROFILENAME_NOTVALID, MSG_VALIDATE_PROFILENAME_RESERVED, MSG_VALIDATE_RENAME_EMPTY, MSG_VALIDATE_RENAME_NOTUNIQUE, MSG_VALIDATE_RENAME_NOTVALID, MSG_VALIDATE_RENAME_OLDEQUALSNEW, MSG_VALIDATE_SRCTYPE_EMPTY, MSG_VALIDATE_SRCTYPE_NOTUNIQUE, MSG_VALIDATE_SRCTYPE_NOTVALID, MSG_VALIDATE_UDACMD_EMPTY, MSG_VALIDATE_UDACMD_NOTVALID, MSG_VALIDATE_UDACMT_EMPTY, MSG_VALIDATE_UDACMT_NOTVALID, MSG_VALIDATE_UDANAME_EMPTY, MSG_VALIDATE_UDANAME_NOTUNIQUE, MSG_VALIDATE_UDANAME_NOTVALID, MSG_VALIDATE_UDTNAME_EMPTY, MSG_VALIDATE_UDTNAME_NOTUNIQUE, MSG_VALIDATE_UDTNAME_NOTVALID, MSG_VALIDATE_UDTTYPES_EMPTY, MSG_VALIDATE_UDTTYPES_NOTVALID, MSG_VALIDATE_USERID_EMPTY, MSG_VALIDATE_USERID_NOTVALID, MSG_WIZARD_PAGE_ERROR, NEW_FILE_ACTION, NEW_FILE_WIZARD, NEW_FOLDER_ACTION, NEW_FOLDER_WIZARD, PLUGIN_ID, PREFIX, RESID_PREFIX
 
Constructor Summary
SystemUDBaseTreeView(Composite parent, ISystemUDWorkWithDialog editPane, SubSystemFactory ssFactory, SystemProfile profile, SystemUDBaseManager docManager)
          Constructor when we have a subsystem factory and profile
SystemUDBaseTreeView(Composite parent, ISystemUDWorkWithDialog editPane, SubSystem ss, SystemUDBaseManager docManager)
          Constructor when we have a subsystem
 
Method Summary
 boolean canCopy()
          Return true if the currently selected item can be copied to the clipboard or not.
 boolean canDelete()
          Decide if we can do the delete or not.
 boolean canMoveDown()
          Return true if the currently selected item can be moved down or not.
 boolean canMoveUp()
          Return true if the currently selected item can be moved up or not.
 boolean canPaste()
          Return true if the current contents of the clipboard apply to us or not.
 boolean canRestore()
          Return true if we are to enable the Restore Defaults actions
 void clearClipboard()
          Clear the clipboard
 void createStandardGroups(IMenuManager menu)
          Creates the Systems plugin standard groups in a context menu.
 boolean doCopy()
          Actually do the copy of currently selected item to the clipboard.
 boolean doDelete()
          Actually do the delete of currently selected item.
 boolean doMoveDown()
          Actually do the move down of currently selected item.
 boolean doMoveUp()
          Actually do the move up of currently selected item.
 boolean doPaste()
          Actually do the paste of clipboard contents relative to currently selected object.
 void doRestore()
          Restore the selected action/type to its IBM-supplied default value.
 void doubleClick(DoubleClickEvent event)
           
 void expandDomainNode(String displayName)
          Expand the given domain (parent) node, named by its translatable name.
 void expandDomainNodes()
          Expand the non-new domain (parent) nodes
 void fillContextMenu(IMenuManager menu)
          This is method is called to populate the popup menu
 TreeItem findParentItem(SystemXMLElementWrapper element)
          Find the parent tree item of the given type.
protected  SystemMessage getDeleteConfirmationMessage()
          Return message for delete confirmation
 SystemUDBaseManager getDocumentManager()
          Return the action or type manager
protected  int getResourceType()
          Return the ISystemModelChangeEvents constant representing the resource type managed by this tree.
protected  SystemUDARestoreDefaultsActions getRestoreAction(ISelection selection)
          Get the restore defaults action
 SystemXMLElementWrapper getSelectedElement()
          Return the selected non-domain element, or null if an existing element is not currently selected
 int getSelectedElementDomain()
          Get the selected action or type domain.
 String getSelectedElementName()
          Get the selected action or type name.
 TreeItem getSelectedNextNextTreeItem()
          Returns the tree item of the sibling two after the first selected object.
 TreeItem getSelectedNextTreeItem()
          Returns the tree item of the sibling after the first selected object.
 TreeItem getSelectedPreviousTreeItem()
          Returns the tree item of the sibling before the first selected object.
 TreeItem getSelectedTreeItem()
          Returns the tree item of the first selected object.
 Shell getShell()
          Convenience method for returning the shell of this viewer.
protected  int getTreeItemPosition(Widget parentItem, Item childItem)
          Get the position of a tree item within its parent
 String getVendorOfSelection()
          Return the vendor that is responsible for pre-supplying this existing type, or null if not applicable.
protected  void init()
           
 boolean isElementAllSelected()
          Return true if currently selected element is "ALL"
 boolean isSelectionVendorSupplied()
          Return true if currently selected element is vendor supplied
 void menuAboutToShow(IMenuManager menu)
          Called when the context menu is about to open.
protected  void moveTreeItem(Widget parentItem, Item item, Object src, int newPosition)
          Move one tree item to a new location
 void refreshElementParent(SystemXMLElementWrapper element)
          Refresh the parent of the given action.
 void selectElement(SystemXMLElementWrapper element)
          Select the given type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.core.ui.uda.ISystemUDTreeView
refresh, setSelection
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

parent

protected Composite parent

menuMgr

protected MenuManager menuMgr

docManager

protected SystemUDBaseManager docManager

subsystem

protected SubSystem subsystem

subsystemFactory

protected SubSystemFactory subsystemFactory

profile

protected SystemProfile profile

wwDialog

protected ISystemUDWorkWithDialog wwDialog

copyAction

protected SystemUDTreeActionCopy copyAction

pasteAction

protected SystemUDTreeActionPaste pasteAction

deleteAction

protected SystemUDTreeActionDelete deleteAction

moveUpAction

protected SystemUDTreeActionMoveUp moveUpAction

moveDownAction

protected SystemUDTreeActionMoveDown moveDownAction

restoreAction

protected SystemUDARestoreDefaultsActions restoreAction

clipboard

protected Clipboard clipboard

menuListenerAdded

protected boolean menuListenerAdded
Constructor Detail

SystemUDBaseTreeView

public SystemUDBaseTreeView(Composite parent,
                            ISystemUDWorkWithDialog editPane,
                            SubSystem ss,
                            SystemUDBaseManager docManager)
Constructor when we have a subsystem


SystemUDBaseTreeView

public SystemUDBaseTreeView(Composite parent,
                            ISystemUDWorkWithDialog editPane,
                            SubSystemFactory ssFactory,
                            SystemProfile profile,
                            SystemUDBaseManager docManager)
Constructor when we have a subsystem factory and profile

Method Detail

init

protected void init()

expandDomainNodes

public void expandDomainNodes()
Expand the non-new domain (parent) nodes

Specified by:
expandDomainNodes in interface ISystemUDTreeView

expandDomainNode

public void expandDomainNode(String displayName)
Expand the given domain (parent) node, named by its translatable name.

Specified by:
expandDomainNode in interface ISystemUDTreeView

menuAboutToShow

public void menuAboutToShow(IMenuManager menu)
Called when the context menu is about to open. Calls fillContextMenu(IMenuManager)


fillContextMenu

public void fillContextMenu(IMenuManager menu)
This is method is called to populate the popup menu


createStandardGroups

public void createStandardGroups(IMenuManager menu)
Creates the Systems plugin standard groups in a context menu.


getRestoreAction

protected SystemUDARestoreDefaultsActions getRestoreAction(ISelection selection)
Get the restore defaults action


getShell

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

Specified by:
getShell in interface ISystemUDTreeView

clearClipboard

public void clearClipboard()
Clear the clipboard


canDelete

public boolean canDelete()
Decide if we can do the delete or not. Decision deferred to work-with dialog hosting this tree


canMoveUp

public boolean canMoveUp()
Return true if the currently selected item can be moved up or not. Called by the SystemUDTreeActionMoveUp action class.


canMoveDown

public boolean canMoveDown()
Return true if the currently selected item can be moved down or not. Called by the SystemUDTreeActionMoveDown action class.


canCopy

public boolean canCopy()
Return true if the currently selected item can be copied to the clipboard or not. Called by the SystemChangeFilterActionCopyString action class.


canPaste

public boolean canPaste()
Return true if the current contents of the clipboard apply to us or not. Called by the SystemUDTreeActionPaste action class.


doDelete

public boolean doDelete()
Actually do the delete of currently selected item. Return true if it worked. Return false if it didn't (eg, user cancelled confirm) Called by the SystemUDTreeActionDelete action class.


getResourceType

protected int getResourceType()
Return the ISystemModelChangeEvents constant representing the resource type managed by this tree. This must be overridden.


getDeleteConfirmationMessage

protected SystemMessage getDeleteConfirmationMessage()
Return message for delete confirmation


doMoveUp

public boolean doMoveUp()
Actually do the move up of currently selected item. Return true if all went well. Called by the SystemUDTreeActionMoveUp action class.


doMoveDown

public boolean doMoveDown()
Actually do the move down of currently selected item. Return true if all went well. Called by the SystemUDTreeActionMoveDown action class.


doCopy

public boolean doCopy()
Actually do the copy of currently selected item to the clipboard. Return true if all went well. Called by the SystemChangeFilterActionCopyString action class.


doPaste

public boolean doPaste()
Actually do the paste of clipboard contents relative to currently selected object. Return true if all went well. Called by the SystemUDTreeActionPaste action class.


canRestore

public boolean canRestore()
Return true if we are to enable the Restore Defaults actions


doRestore

public void doRestore()
Restore the selected action/type to its IBM-supplied default value. Needs to be overridden by children that want to support it.


getDocumentManager

public SystemUDBaseManager getDocumentManager()
Return the action or type manager

Specified by:
getDocumentManager in interface ISystemUDTreeView

doubleClick

public void doubleClick(DoubleClickEvent event)

getSelectedElementName

public String getSelectedElementName()
Get the selected action or type name. Returns "" if nothing selected

Specified by:
getSelectedElementName in interface ISystemUDTreeView

isElementAllSelected

public boolean isElementAllSelected()
Return true if currently selected element is "ALL"

Specified by:
isElementAllSelected in interface ISystemUDTreeView

isSelectionVendorSupplied

public boolean isSelectionVendorSupplied()
Return true if currently selected element is vendor supplied

Specified by:
isSelectionVendorSupplied in interface ISystemUDTreeView

getVendorOfSelection

public String getVendorOfSelection()
Return the vendor that is responsible for pre-supplying this existing type, or null if not applicable.

Specified by:
getVendorOfSelection in interface ISystemUDTreeView

getSelectedElementDomain

public int getSelectedElementDomain()
Get the selected action or type domain. Returns -1 if nothing selected or domains not supported

Specified by:
getSelectedElementDomain in interface ISystemUDTreeView

getSelectedElement

public SystemXMLElementWrapper getSelectedElement()
Return the selected non-domain element, or null if an existing element is not currently selected

Specified by:
getSelectedElement in interface ISystemUDTreeView

selectElement

public void selectElement(SystemXMLElementWrapper element)
Select the given type

Specified by:
selectElement in interface ISystemUDTreeView

findParentItem

public TreeItem findParentItem(SystemXMLElementWrapper element)
Find the parent tree item of the given type. If it is not currently shown in the tree, or there is no parent, returns null.

Specified by:
findParentItem in interface ISystemUDTreeView

refreshElementParent

public void refreshElementParent(SystemXMLElementWrapper element)
Refresh the parent of the given action. That is, find the parent and refresh the children. If the parent is not found, assume it is because it is new too, so refresh the whole tree.

Specified by:
refreshElementParent in interface ISystemUDTreeView

getSelectedTreeItem

public TreeItem getSelectedTreeItem()
Returns the tree item of the first selected object.

Specified by:
getSelectedTreeItem in interface ISystemUDTreeView

getSelectedPreviousTreeItem

public TreeItem getSelectedPreviousTreeItem()
Returns the tree item of the sibling before the first selected object.

Specified by:
getSelectedPreviousTreeItem in interface ISystemUDTreeView

getSelectedNextTreeItem

public TreeItem getSelectedNextTreeItem()
Returns the tree item of the sibling after the first selected object.

Specified by:
getSelectedNextTreeItem in interface ISystemUDTreeView

getSelectedNextNextTreeItem

public TreeItem getSelectedNextNextTreeItem()
Returns the tree item of the sibling two after the first selected object.

Specified by:
getSelectedNextNextTreeItem in interface ISystemUDTreeView

moveTreeItem

protected void moveTreeItem(Widget parentItem,
                            Item item,
                            Object src,
                            int newPosition)
Move one tree item to a new location


getTreeItemPosition

protected int getTreeItemPosition(Widget parentItem,
                                  Item childItem)
Get the position of a tree item within its parent


Remote Systems
v6.4.1

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.