|
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.SystemViewPart
This is the desktop view wrapper of the System View viewer. ViewPart is from com.ibm.itp.ui.support.parts
Nested Class Summary | |
---|---|
protected class |
SystemViewPart.RemoteObject
|
class |
SystemViewPart.RestoreStateRunnable
|
class |
SystemViewPart.ToggleLinkingAction
|
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 |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
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 void selectReveal(ISelection selection)
protected 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)
protected FrameList createFrameList()
public FrameList getFrameList()
public SystemViewPartGotoActionGroup getGotoActionGroup()
public Shell getShell()
getShell
in interface ISystemShellProvider
public IActionBars getActionBars()
getActionBars
in interface ISystemShellProvider
public void setFocus()
IWorkbenchPart#setFocus()
public void selectionChanged(SelectionChangedEvent e)
protected 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()
protected ISystemViewInputProvider getInputProvider()
public void systemPreferenceChanged(ISystemPreferenceChangeEvent event)
ISystemPreferenceChangeListener
systemPreferenceChanged
in interface ISystemPreferenceChangeListener
ISystemPreferenceChangeEvent
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
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 ImageDescriptor getNavigatorImageDescriptor(String relativePath)
public void saveState(IMemento memento)
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)
public String getFactoryId()
protected void saveInputState(IMemento memento)
protected String getInputMementoHandle(Object o, ISystemViewElementAdapter adapter)
public Class[] getAdapterList()
getAdapterList
in interface IAdapterFactory
IAdapterFactory.getAdapterList()
public void registerWithManager(IAdapterManager manager, Object input)
public void unregisterWithManager(IAdapterManager manager)
public Object getAdapter(Object adaptableObject, Class adapterType)
getAdapter
in interface IAdapterFactory
IAdapterFactory.getAdapter(java.lang.Object, java.lang.Class)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |