|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectViewPart
com.ibm.etools.systems.core.ui.view.team.SystemTeamViewPart
The viewer and view part for the Team view
Nested Class Summary | |
---|---|
class |
SystemTeamViewPart.RestoreStateRunnable
Inner class for running restore-state in a thread |
Field Summary | |
---|---|
protected SystemCollapseAllAction |
collapseAllAction
|
static String |
Copyright
|
protected SystemCommonDeleteAction |
deleteAction
|
static String |
ID
|
protected SystemTeamViewRefreshAllAction |
menuRefreshAllAction
|
protected SystemNewProfileAction |
newProfileAction
|
protected ISystemViewElementAdapter |
profileAdapter
|
protected PropertyDialogAction |
propertyDialogAction
|
protected SystemTeamReloadAction |
reloadRSEAction
|
protected SystemTeamViewRefreshAllAction |
toolBarRefreshAllAction
|
Fields inherited from interface com.ibm.etools.systems.model.ISystemModelChangeListener |
---|
copyright |
Fields inherited from interface com.ibm.etools.systems.core.ui.messages.ISystemMessageLine |
---|
copyright |
Fields inherited from interface com.ibm.etools.systems.core.ui.ISystemDeleteTarget |
---|
copyright |
Fields inherited from interface com.ibm.etools.systems.core.ui.ISystemRenameTarget |
---|
copyright |
Constructor Summary | |
---|---|
SystemTeamViewPart()
|
Method Summary | |
---|---|
protected void |
addActions(SystemMenuManager ourMenu,
IStructuredSelection selection)
Let each object add their own actions... |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
Add a selection change listener |
protected void |
addTreeViewerListeners()
Adds the listeners to the tree viewer. |
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. |
void |
clearErrorMessage()
Clears the currently displayed error message and redisplayes the message which was active before the error message was set. |
void |
clearMessage()
Clears the currently displayed message. |
void |
createPartControl(Composite parent)
Create the viewer to go in this view part. |
void |
createStandardGroups(IMenuManager menu)
Creates the Systems plugin standard groups in a context menu. |
void |
dispose()
|
boolean |
doDelete()
Actually do the delete of currently selected items. |
boolean |
doRename(String[] newNames)
Actually do the rename of currently selected items. |
void |
fillActionBars(IActionBars actionBars)
Adds the actions in this group and its subgroups to the action bars. |
protected SystemCollapseAllAction |
getCollapseAllAction()
Return the collapseAll action |
protected IAction |
getDeleteAction(IStructuredSelection selection)
Rather than pre-defined this common action we wait until it is first needed, for performance reasons. |
String |
getErrorMessage()
Get the currently displayed error text. |
protected IAdaptable |
getInput()
Determines the input for the viewer. |
protected String |
getMementoHandle(Object o)
Return the memento handle key plus the memento handle for each part leading up to the current object. |
String |
getMessage()
Get the currently displayed message. |
protected ImageDescriptor |
getNavigatorImageDescriptor(String relativePath)
Returns the image descriptor with the given relative path. |
protected Object |
getObjectFromMemento(String memento)
Private method to deconstruct an expanded/selected memento into an actual object |
ISelection |
getSelection()
Returns selection for the tree view |
Shell |
getShell()
Returns the shell to use for opening dialogs. |
IStructuredSelection |
getStructuredSelection()
Returns the tree viewer selection as a structured selection |
SystemMessage |
getSystemErrorMessage()
Get the currently displayed error text. |
TreeViewer |
getTreeViewer()
|
TreeViewer |
getViewer()
Return our viewer. |
protected void |
handleOpen(OpenEvent event)
Handles an open event from the viewer. |
void |
init(IViewSite site,
IMemento memento)
Initializes this view with the given view site. |
protected String |
internalGetMementoHandle(Object o)
Encapsulate code to look at object class type and determine what to return for a memento handle |
protected String |
internalGetMementoHandleKey(Object o)
Encapsulate code to look at object class type and determine what to return for a memento handle key |
void |
menuAboutToShow(IMenuManager menu)
Called when the context menu is about to open. |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
Remove a selection change listener |
void |
saveState(IMemento memento)
Method declared on IViewPart. |
void |
selectionChanged(SelectionChangedEvent event)
Handles selection changed in viewer. |
void |
selectReveal(ISelection selection)
Reveal and selects the passed selection in viewer. |
void |
setErrorMessage(String message)
Display the given error message. |
void |
setErrorMessage(SystemMessage message)
Display the given error message. |
void |
setErrorMessage(Throwable exc)
Display the given error message. |
void |
setFocus()
We are getting focus |
void |
setMessage(String message)
Set the message text. |
void |
setMessage(SystemMessage message)
If the message line currently displays an error, the message is stored and will be shown after a call to clearErrorMessage |
void |
setSelection(ISelection selection)
|
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 |
void |
systemModelResourceChanged(ISystemModelChangeEvent event)
This is the method in your class that will be called when a resource in the RSE model changes. |
void |
updateActionBars(IStructuredSelection selection)
Updates the actions which were added to the action bars. |
void |
updateTitle()
Updates the title text and title tool tip. |
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
public static final String ID
protected SystemTeamReloadAction reloadRSEAction
protected SystemNewProfileAction newProfileAction
protected SystemCommonDeleteAction deleteAction
protected PropertyDialogAction propertyDialogAction
protected SystemTeamViewRefreshAllAction toolBarRefreshAllAction
protected SystemTeamViewRefreshAllAction menuRefreshAllAction
protected SystemCollapseAllAction collapseAllAction
protected ISystemViewElementAdapter profileAdapter
Constructor Detail |
public SystemTeamViewPart()
Method Detail |
public void removeSelectionChangedListener(ISelectionChangedListener listener)
public void addSelectionChangedListener(ISelectionChangedListener listener)
public ISelection getSelection()
public void setSelection(ISelection selection)
public IStructuredSelection getStructuredSelection()
public TreeViewer getTreeViewer()
public void setFocus()
public void createPartControl(Composite parent)
public void menuAboutToShow(IMenuManager menu)
#fillContextMenu(IMenuManager)
public void init(IViewSite site, IMemento memento) throws PartInitException
The parent's default implementation will ignore the memento and initialize the view in a fresh state. Subclasses may override the implementation to perform any state restoration as needed.
PartInitException
protected void addTreeViewerListeners()
public Shell getShell()
protected void handleOpen(OpenEvent event)
public void selectReveal(ISelection selection)
protected void addActions(SystemMenuManager ourMenu, IStructuredSelection selection)
public void createStandardGroups(IMenuManager menu)
protected IAction getDeleteAction(IStructuredSelection selection)
public void dispose()
public TreeViewer getViewer()
public void updateTitle()
protected IAdaptable getInput()
public void fillActionBars(IActionBars actionBars)
protected SystemCollapseAllAction getCollapseAllAction()
public void updateActionBars(IStructuredSelection selection)
public void systemModelResourceChanged(ISystemModelChangeEvent event)
systemModelResourceChanged
in interface ISystemModelChangeListener
ISystemModelChangeEvent
public boolean showDelete()
ISystemDeleteTarget
showDelete
in interface ISystemDeleteTarget
public boolean canDelete()
ISystemDeleteTarget
canDelete
in interface ISystemDeleteTarget
public boolean doDelete()
ISystemDeleteTarget
doDelete
in interface ISystemDeleteTarget
public boolean showRename()
ISystemRenameTarget
showRename
in interface ISystemRenameTarget
public boolean canRename()
ISystemRenameTarget
canRename
in interface ISystemRenameTarget
public boolean doRename(String[] newNames)
ISystemRenameTarget
doRename
in interface ISystemRenameTarget
protected ImageDescriptor getNavigatorImageDescriptor(String relativePath)
public void saveState(IMemento memento)
protected String getMementoHandle(Object o)
protected String internalGetMementoHandleKey(Object o)
protected String internalGetMementoHandle(Object o)
protected Object getObjectFromMemento(String memento)
public void selectionChanged(SelectionChangedEvent event)
public void clearErrorMessage()
clearErrorMessage
in interface ISystemMessageLine
public void clearMessage()
clearMessage
in interface ISystemMessageLine
public String getErrorMessage()
getErrorMessage
in interface ISystemMessageLine
null
is returned.public String getMessage()
getMessage
in interface ISystemMessageLine
null is returned.
public void setErrorMessage(String message)
setErrorMessage
in interface ISystemMessageLine
public SystemMessage getSystemErrorMessage()
getSystemErrorMessage
in interface ISystemMessageLine
null
is returned.public void setErrorMessage(SystemMessage message)
setErrorMessage
in interface ISystemMessageLine
public void setErrorMessage(Throwable exc)
setErrorMessage
in interface ISystemMessageLine
public void setMessage(String message)
setMessage
in interface ISystemMessageLine
public void setMessage(SystemMessage message)
setMessage
in interface ISystemMessageLine
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |