|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTreeViewer
com.ibm.etools.systems.core.ui.uda.SystemUDBaseTreeView
Base class for tree views for both actions and types.
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
|
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 |
public static final String copyright
protected Composite parent
protected MenuManager menuMgr
protected SystemUDBaseManager docManager
protected SubSystem subsystem
protected SubSystemFactory subsystemFactory
protected SystemProfile profile
protected ISystemUDWorkWithDialog wwDialog
protected SystemUDTreeActionCopy copyAction
protected SystemUDTreeActionPaste pasteAction
protected SystemUDTreeActionDelete deleteAction
protected SystemUDTreeActionMoveUp moveUpAction
protected SystemUDTreeActionMoveDown moveDownAction
protected SystemUDARestoreDefaultsActions restoreAction
protected Clipboard clipboard
protected boolean menuListenerAdded
Constructor Detail |
public SystemUDBaseTreeView(Composite parent, ISystemUDWorkWithDialog editPane, SubSystem ss, SystemUDBaseManager docManager)
public SystemUDBaseTreeView(Composite parent, ISystemUDWorkWithDialog editPane, SubSystemFactory ssFactory, SystemProfile profile, SystemUDBaseManager docManager)
Method Detail |
protected void init()
public void expandDomainNodes()
expandDomainNodes
in interface ISystemUDTreeView
public void expandDomainNode(String displayName)
expandDomainNode
in interface ISystemUDTreeView
public void menuAboutToShow(IMenuManager menu)
fillContextMenu(IMenuManager)
public void fillContextMenu(IMenuManager menu)
public void createStandardGroups(IMenuManager menu)
protected SystemUDARestoreDefaultsActions getRestoreAction(ISelection selection)
public Shell getShell()
getShell
in interface ISystemUDTreeView
public void clearClipboard()
public boolean canDelete()
public boolean canMoveUp()
public boolean canMoveDown()
public boolean canCopy()
public boolean canPaste()
public boolean doDelete()
protected int getResourceType()
ISystemModelChangeEvents
constant representing the resource type managed by this tree.
This must be overridden.
protected SystemMessage getDeleteConfirmationMessage()
public boolean doMoveUp()
public boolean doMoveDown()
public boolean doCopy()
public boolean doPaste()
public boolean canRestore()
public void doRestore()
public SystemUDBaseManager getDocumentManager()
getDocumentManager
in interface ISystemUDTreeView
public void doubleClick(DoubleClickEvent event)
public String getSelectedElementName()
getSelectedElementName
in interface ISystemUDTreeView
public boolean isElementAllSelected()
isElementAllSelected
in interface ISystemUDTreeView
public boolean isSelectionVendorSupplied()
isSelectionVendorSupplied
in interface ISystemUDTreeView
public String getVendorOfSelection()
getVendorOfSelection
in interface ISystemUDTreeView
public int getSelectedElementDomain()
getSelectedElementDomain
in interface ISystemUDTreeView
public SystemXMLElementWrapper getSelectedElement()
getSelectedElement
in interface ISystemUDTreeView
public void selectElement(SystemXMLElementWrapper element)
selectElement
in interface ISystemUDTreeView
public TreeItem findParentItem(SystemXMLElementWrapper element)
findParentItem
in interface ISystemUDTreeView
public void refreshElementParent(SystemXMLElementWrapper element)
refreshElementParent
in interface ISystemUDTreeView
public TreeItem getSelectedTreeItem()
getSelectedTreeItem
in interface ISystemUDTreeView
public TreeItem getSelectedPreviousTreeItem()
getSelectedPreviousTreeItem
in interface ISystemUDTreeView
public TreeItem getSelectedNextTreeItem()
getSelectedNextTreeItem
in interface ISystemUDTreeView
public TreeItem getSelectedNextNextTreeItem()
getSelectedNextNextTreeItem
in interface ISystemUDTreeView
protected void moveTreeItem(Widget parentItem, Item item, Object src, int newPosition)
protected int getTreeItemPosition(Widget parentItem, Item childItem)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |