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 SummaryFieldsModifier and TypeFieldDescription- static final StringThe Terminal Sessions View Part ID "com.iizigo.term.session.SessionsView".- Fields inherited from interface org.eclipse.ui.IWorkbenchPart- PROP_TITLE
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- 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.- voidInitializes without memento.- voidInitializes with memento.- booleanChecks 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.- voidSaves the memento.- void- setFocus()Sets focus to the table or to the new sessions link.- static voidShows the SessionsView.- voidChecks 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- IDThe Terminal Sessions View Part ID "com.iizigo.term.session.SessionsView".
 
- Constructor Details- SessionsViewpublic SessionsView()Eclipse constructor.
 
- Method Details- getSessionsViewGets the SessionView.- Parameters:
- createIfRequired- Flag to create sessions if not created yet.
- Returns:
- null if not created.
 
- showSessionsViewpublic static void showSessionsView()Shows the SessionsView.
- initInitializes without memento.- Specified by:
- initin interface- IViewPart
- Overrides:
- initin class- ViewPart
- Throws:
- PartInitException
 
- initInitializes with memento.- Specified by:
- initin interface- IViewPart
- Overrides:
- initin class- ViewPart
- Throws:
- PartInitException
 
- saveStateSaves the memento.
- getUndoContextGets the undo context.- Specified by:
- getUndoContextin interface- IPropUndoContext
- Returns:
- The undo context.
 
- getSelectionEnablerGets the selection enabler instance.- Specified by:
- getSelectionEnablerin interface- IWorkbenchPartIZ
 
- createPartControlCreate contents of the view part.- Specified by:
- createPartControlin interface- IWorkbenchPart
- Specified by:
- createPartControlin class- WorkbenchPart
 
- updateStatespublic void updateStates()Checks for states update.- Specified by:
- updateStatesin interface- IActivationListener
 
- performConfigureSessionPerforms new or configure session.- Parameters:
- shell- The shell.
- props- The properties to edit configuration of.
 
- disposepublic void dispose()Disposes of the view part.- Specified by:
- disposein interface- IWorkbenchPart
- Overrides:
- disposein class- WorkbenchPart
 
- getExtensionGets the extensions framework.- Specified by:
- getExtensionin interface- IWorkbenchPartIZ
 
- isDisposedpublic boolean isDisposed()Checks if the part is disposed of.- Specified by:
- isDisposedin interface- IActivationListener
- Specified by:
- isDisposedin interface- IDisposedPart
- Specified by:
- isDisposedin interface- IWorkbenchPartIZ
- Returns:
- true if disposed of, false otherwise.
 
- setFocuspublic void setFocus()Sets focus to the table or to the new sessions link.- Specified by:
- setFocusin interface- IWorkbenchPart
- Specified by:
- setFocusin class- WorkbenchPart
 
- onActivatedpublic void onActivated- (boolean on) Called when activator or deactivated.- Specified by:
- onActivatedin interface- IActivationListener
 
- onClosepublic void onClose()Called when about to close, but SWT is still there.- Specified by:
- onClosein interface- IActivationListener
 
- getUndoRedoGets the undo/redo instance.- Specified by:
- getUndoRedoin interface- IWorkbenchPartIZ