|
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.SystemViewPart
This is the desktop view wrapper of the System View viewer.
| Nested Class Summary | |
|---|---|
protected class |
SystemViewPart.RemoteObject
|
class |
SystemViewPart.RestoreStateRunnable
|
class |
SystemViewPart.ToggleLinkingAction
|
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
SystemViewPart()
SystemViewPart constructor. |
|
| Method Summary | |
|---|---|
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. |
IAdaptable |
createElement(IMemento memento)
Given the memento created by saveState, for the input to the perspective, recreate the input object at startup time. |
protected FrameList |
createFrameList()
Creates the frame source and frame list, and connects them. |
void |
createPartControl(Composite parent)
Creates the SWT controls for a part. |
void |
dispose()
|
protected void |
editorActivated(IEditorPart editor)
An editor has been activated. |
protected void |
fillLocalToolBar(boolean showConnectionActions)
Fills the local tool bar with actions. |
IActionBars |
getActionBars()
Return the action bars for this view part |
Object |
getAdapter(Object adaptableObject,
Class adapterType)
|
Class[] |
getAdapterList()
|
String |
getErrorMessage()
Get the currently displayed error text. |
String |
getFactoryId()
Return the element factory ID as declared in the extension point for "org.eclipse.ui.elementFactories" in plugin.xml |
FrameList |
getFrameList()
Return the FrameList object for this view part |
protected String |
getFrameName(Object element)
Returns the name for the given element. |
protected String |
getFrameToolTipText(Object element)
Returns the tool tip text for the given element. |
SystemViewPartGotoActionGroup |
getGotoActionGroup()
Return the Goto action group |
protected String |
getInputMementoHandle(Object o,
ISystemViewElementAdapter adapter)
|
protected ISystemViewInputProvider |
getInputProvider()
Returns the initial input provider for the viewer. |
protected String |
getMementoHandle(Object o,
ISystemViewElementAdapter adapter)
Defer to the adapter to get 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(boolean showFilterPools,
boolean showFilterStrings,
String memento)
protected method to deconstruct an expanded/selected memento into an actual object |
Viewer |
getRSEViewer()
|
Shell |
getShell()
Return the shell for this view part |
SystemMessage |
getSystemErrorMessage()
Get the currently displayed error text. |
SystemView |
getSystemView()
Easy access to the TreeViewer object |
void |
init(IViewSite site,
IMemento memento)
Initializes this view with the given view site. |
protected void |
linkToEditor(IStructuredSelection selection)
|
static void |
populateSystemViewPulldownMenu(IMenuManager menuMgr,
Shell shell,
boolean showConnectionActions,
IWorkbenchPart viewPart,
ISelectionProvider sp)
Pulldown the local toolbar menu with actions |
void |
registerWithManager(IAdapterManager manager,
Object input)
Called by our plugin's startup method to register our adaptable object types with the platform. |
protected void |
restoreState(IMemento memento)
Our own method for restoring state |
protected void |
saveInputState(IMemento memento)
The workbench is closing, and we are being asked to save the state of the input object in one of the secondary perspectives. |
void |
saveState(IMemento memento)
Method declared on IViewPart. |
void |
selectionChanged(SelectionChangedEvent e)
|
void |
selectReveal(ISelection selection)
When an element is added/deleted/changed/etc and we have focus, this method is called. |
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()
|
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 |
systemPreferenceChanged(ISystemPreferenceChangeEvent event)
This is the method in your class that will be called when a system resource changes. |
void |
toggleLinkingEnabled()
|
static Vector |
tokenize(String inputString,
String delimiter)
Parse a string into tokens. |
void |
unregisterWithManager(IAdapterManager manager)
Called by our plugin's startup method to register our adaptable object types with the platform. |
protected 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 |
protected SystemView systemView
protected ISystemViewInputProvider input
protected String message
protected String errorMessage
protected SystemMessage sysErrorMessage
protected IStatusLineManager statusLine
protected boolean inputIsRoot
protected boolean doTimings
protected boolean isLinkingEnabled
protected SystemElapsedTimer timer
protected FrameList frameList
protected SystemViewPartGotoActionGroup gotoActionGroup
protected SystemViewPart.ToggleLinkingAction toggleLinkingAction
protected IMemento fMemento
protected IAdapterManager platformManager
protected SystemPreferenceQualifyConnectionNamesAction qualifyConnectionNamesAction
protected SystemPreferenceShowFilterPoolsAction showFilterPoolsAction
protected SystemPreferenceRestoreStateAction restoreStateAction
protected static SystemWorkWithProfilesAction wwProfilesAction
protected SystemCopyToClipboardAction _copyAction
protected SystemPasteFromClipboardAction _pasteAction
public static final String MEMENTO_DELIM
public static final String ID
protected IPartListener partListener
| Constructor Detail |
public SystemViewPart()
| Method Detail |
public SystemView getSystemView()
public Viewer getRSEViewer()
getRSEViewer in interface IRSEViewPartpublic void selectReveal(ISelection selection)
selectReveal in interface ISetSelectionTargetprotected String getFrameName(Object element)
protected String getFrameToolTipText(Object element)
public void toggleLinkingEnabled()
protected void editorActivated(IEditorPart editor)
editor - the active editorprotected void updateTitle()
public void createPartControl(Composite parent)
createPartControl in interface IWorkbenchPartprotected FrameList createFrameList()
public FrameList getFrameList()
public SystemViewPartGotoActionGroup getGotoActionGroup()
public Shell getShell()
getShell in interface ISystemShellProviderpublic IActionBars getActionBars()
getActionBars in interface ISystemShellProviderpublic void setFocus()
setFocus in interface IWorkbenchPartIWorkbenchPart.setFocus()public void selectionChanged(SelectionChangedEvent e)
selectionChanged in interface ISelectionChangedListenerprotected void linkToEditor(IStructuredSelection selection)
protected void fillLocalToolBar(boolean showConnectionActions)
public static void populateSystemViewPulldownMenu(IMenuManager menuMgr,
Shell shell,
boolean showConnectionActions,
IWorkbenchPart viewPart,
ISelectionProvider sp)
public void dispose()
dispose in interface IWorkbenchPartprotected ISystemViewInputProvider getInputProvider()
public void systemPreferenceChanged(ISystemPreferenceChangeEvent event)
ISystemPreferenceChangeListener
systemPreferenceChanged in interface ISystemPreferenceChangeListenerISystemPreferenceChangeEventpublic 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
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 ImageDescriptor getNavigatorImageDescriptor(String relativePath)
public void saveState(IMemento memento)
saveState in interface IPersistable
protected String getMementoHandle(Object o,
ISystemViewElementAdapter adapter)
protected void restoreState(IMemento memento)
protected Object getObjectFromMemento(boolean showFilterPools,
boolean showFilterStrings,
String memento)
public static Vector tokenize(String inputString,
String delimiter)
public IAdaptable createElement(IMemento memento)
createElement in interface IElementFactorypublic String getFactoryId()
getFactoryId in interface IPersistableElementprotected void saveInputState(IMemento memento)
protected String getInputMementoHandle(Object o,
ISystemViewElementAdapter adapter)
public Class[] getAdapterList()
getAdapterList in interface IAdapterFactoryIAdapterFactory.getAdapterList()
public void registerWithManager(IAdapterManager manager,
Object input)
public void unregisterWithManager(IAdapterManager manager)
public Object getAdapter(Object adaptableObject,
Class adapterType)
getAdapter in interface IAdapterFactoryIAdapterFactory.getAdapter(java.lang.Object, java.lang.Class)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||