Package com.iizigo.term.session
Class SessionsView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.iizigo.term.session.SessionsView
- All Implemented Interfaces:
IActivationListener
,IWorkbenchPartIZ
,IPropUndoContext
,IDisposedPart
,IAdaptable
,IExecutableExtension
,IPersistable
,IViewPart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
public class SessionsView extends ViewPart implements IPropUndoContext, IActivationListener, IWorkbenchPartIZ
The Terminal Sessions View Part shows all currently running terminal sessions.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The Terminal Sessions View Part ID "com.iizigo.term.session.SessionsView".Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionvoid
createPartControl
(Composite parent) Create contents of the view part.void
dispose()
Disposes of the view part.Gets the extensions framework.Gets the selection enabler instance.static SessionsView
getSessionsView
(boolean createIfRequired) Gets the SessionView.Gets the undo context.Gets the undo/redo instance.void
Initializes without memento.void
Initializes with memento.boolean
Checks if the part is disposed of.void
onActivated
(boolean on) Called when activator or deactivated.void
onClose()
Called when about to close, but SWT is still there.void
performConfigureSession
(Shell shell, EditorTerminalProps props) Performs new or configure session.void
Saves the memento.void
setFocus()
Sets focus to the table or to the new sessions link.static void
Shows the SessionsView.void
Checks for states update.Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, setContentDescription, setInitializationData, setPartName
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, 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.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
Methods inherited from interface com.iizigo.editor.IWorkbenchPartIZ
onComponentFocused
Field Details
ID
The Terminal Sessions View Part ID "com.iizigo.term.session.SessionsView".
Constructor Details
SessionsView
public SessionsView()Eclipse constructor.
Method Details
getSessionsView
Gets the SessionView.- Parameters:
createIfRequired
- Flag to create sessions if not created yet.- Returns:
- null if not created.
showSessionsView
public static void showSessionsView()Shows the SessionsView.init
Initializes without memento.- Specified by:
init
in interfaceIViewPart
- Overrides:
init
in classViewPart
- Throws:
PartInitException
init
Initializes with memento.- Specified by:
init
in interfaceIViewPart
- Overrides:
init
in classViewPart
- Throws:
PartInitException
saveState
Saves the memento.getUndoContext
Gets the undo context.- Specified by:
getUndoContext
in interfaceIPropUndoContext
- Returns:
- The undo context.
getSelectionEnabler
Gets the selection enabler instance.- Specified by:
getSelectionEnabler
in interfaceIWorkbenchPartIZ
createPartControl
Create contents of the view part.- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
updateStates
public void updateStates()Checks for states update.- Specified by:
updateStates
in interfaceIActivationListener
performConfigureSession
Performs new or configure session.- Parameters:
shell
- The shell.props
- The properties to edit configuration of.
dispose
public void dispose()Disposes of the view part.- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in classWorkbenchPart
getExtension
Gets the extensions framework.- Specified by:
getExtension
in interfaceIWorkbenchPartIZ
isDisposed
public boolean isDisposed()Checks if the part is disposed of.- Specified by:
isDisposed
in interfaceIActivationListener
- Specified by:
isDisposed
in interfaceIDisposedPart
- Specified by:
isDisposed
in interfaceIWorkbenchPartIZ
- Returns:
- true if disposed of, false otherwise.
setFocus
public void setFocus()Sets focus to the table or to the new sessions link.- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
onActivated
public void onActivated(boolean on) Called when activator or deactivated.- Specified by:
onActivated
in interfaceIActivationListener
onClose
public void onClose()Called when about to close, but SWT is still there.- Specified by:
onClose
in interfaceIActivationListener
getUndoRedo
Gets the undo/redo instance.- Specified by:
getUndoRedo
in interfaceIWorkbenchPartIZ