|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.rse.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
|
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 org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| 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(IProgressMonitor monitor)
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 |
Viewer |
getRSEViewer()
|
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 |
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 org.eclipse.ui.part.ViewPart |
|---|
checkSite, getViewSite, init, setContentDescription, setInitializationData, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
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)
removeSelectionChangedListener in interface ISelectionProviderpublic void addSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener in interface ISelectionProviderpublic ISelection getSelection()
getSelection in interface ISelectionProviderpublic void setSelection(ISelection selection)
setSelection in interface ISelectionProviderpublic IStructuredSelection getStructuredSelection()
public TreeViewer getTreeViewer()
public Viewer getRSEViewer()
getRSEViewer in interface IRSEViewPartpublic void setFocus()
setFocus in interface IWorkbenchPartpublic void createPartControl(Composite parent)
createPartControl in interface IWorkbenchPart
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.
init in interface IViewPartPartInitExceptionprotected void addTreeViewerListeners()
public Shell getShell()
protected void handleOpen(OpenEvent event)
public void selectReveal(ISelection selection)
selectReveal in interface ISetSelectionTarget
protected void addActions(SystemMenuManager ourMenu,
IStructuredSelection selection)
public void createStandardGroups(IMenuManager menu)
protected IAction getDeleteAction(IStructuredSelection selection)
public void dispose()
dispose in interface IWorkbenchPartpublic 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 ISystemModelChangeListenerISystemModelChangeEventpublic boolean showDelete()
ISystemDeleteTarget
showDelete in interface ISystemDeleteTargetpublic boolean canDelete()
ISystemDeleteTarget
canDelete in interface ISystemDeleteTargetpublic boolean doDelete(IProgressMonitor monitor)
ISystemDeleteTarget
doDelete in interface ISystemDeleteTargetpublic boolean showRename()
ISystemRenameTarget
showRename in interface ISystemRenameTargetpublic boolean canRename()
ISystemRenameTarget
canRename in interface ISystemRenameTargetpublic boolean doRename(String[] newNames)
ISystemRenameTarget
doRename in interface ISystemRenameTargetprotected ImageDescriptor getNavigatorImageDescriptor(String relativePath)
public void saveState(IMemento memento)
saveState in interface IViewPartprotected String getMementoHandle(Object o)
protected String internalGetMementoHandleKey(Object o)
protected String internalGetMementoHandle(Object o)
protected Object getObjectFromMemento(String memento)
public void selectionChanged(SelectionChangedEvent event)
selectionChanged in interface ISelectionChangedListenerpublic void clearErrorMessage()
clearErrorMessage in interface ISystemMessageLinepublic void clearMessage()
clearMessage in interface ISystemMessageLinepublic String getErrorMessage()
getErrorMessage in interface ISystemMessageLinenull is returned.public String getMessage()
getMessage in interface ISystemMessageLinenull is returned.public void setErrorMessage(String message)
setErrorMessage in interface ISystemMessageLinepublic SystemMessage getSystemErrorMessage()
getSystemErrorMessage in interface ISystemMessageLinenull is returned.public void setErrorMessage(SystemMessage message)
setErrorMessage in interface ISystemMessageLinepublic void setErrorMessage(Throwable exc)
setErrorMessage in interface ISystemMessageLinepublic void setMessage(String message)
setMessage in interface ISystemMessageLinepublic void setMessage(SystemMessage message)
setMessage in interface ISystemMessageLine
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||