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,- org.eclipse.core.runtime.IAdaptable,- org.eclipse.core.runtime.IExecutableExtension,- org.eclipse.ui.IPersistable,- org.eclipse.ui.IViewPart,- org.eclipse.ui.IWorkbenchPart,- org.eclipse.ui.IWorkbenchPart2,- org.eclipse.ui.IWorkbenchPart3,- org.eclipse.ui.part.IWorkbenchPartOrientation
 - public class SessionsView extends org.eclipse.ui.part.ViewPart implements IPropUndoContext, IActivationListener, IWorkbenchPartIZ The Terminal Sessions View Part shows all currently running terminal sessions.- Author:
- Christopher Mindus
 
- Field Summary- Fields - Modifier and Type - Field - Description - static java.lang.String- IDThe Terminal Sessions View Part ID "com.iizigo.term.session.SessionsView".
 - Constructor Summary- Constructors - Constructor - Description - SessionsView()Eclipse constructor.
 - Method Summary- All Methods Static Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- createPartControl(org.eclipse.swt.widgets.Composite parent)Create contents of the view part.- void- dispose()Disposes of the view part.- IPartExtensionIZ- getExtension()Gets the extensions framework.- SelectionEnabler- getSelectionEnabler()Gets the selection enabler instance.- static SessionsView- getSessionsView(boolean createIfRequired)Gets the SessionView.- org.eclipse.core.commands.operations.IUndoContext- getUndoContext()Gets the undo context.- IPropUndoRedo- getUndoRedo()Gets the undo/redo instance.- void- init(org.eclipse.ui.IViewSite site)Initializes without memento.- void- init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento)Initializes with memento.- boolean- isDisposed()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(org.eclipse.swt.widgets.Shell shell, EditorTerminalProps props)Performs new or configure session.- void- saveState(org.eclipse.ui.IMemento memento)Saves the memento.- void- setFocus()Sets focus to the table or to the new sessions link.- static void- showSessionsView()Shows the SessionsView.- void- updateStates()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.ui.IWorkbenchPart- addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 - Methods inherited from interface com.iizigo.editor.IWorkbenchPartIZ- onComponentFocused
 
 
- Method Detail- getSessionsView- public static SessionsView getSessionsView(boolean createIfRequired) 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- public void init(org.eclipse.ui.IViewSite site) throws org.eclipse.ui.PartInitExceptionInitializes without memento.- Specified by:
- initin interface- org.eclipse.ui.IViewPart
- Overrides:
- initin class- org.eclipse.ui.part.ViewPart
- Throws:
- org.eclipse.ui.PartInitException
 
 - init- public void init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento) throws org.eclipse.ui.PartInitExceptionInitializes with memento.- Specified by:
- initin interface- org.eclipse.ui.IViewPart
- Overrides:
- initin class- org.eclipse.ui.part.ViewPart
- Throws:
- org.eclipse.ui.PartInitException
 
 - saveState- public void saveState(org.eclipse.ui.IMemento memento) Saves the memento.- Specified by:
- saveStatein interface- org.eclipse.ui.IPersistable
- Specified by:
- saveStatein interface- org.eclipse.ui.IViewPart
- Overrides:
- saveStatein class- org.eclipse.ui.part.ViewPart
 
 - getUndoContext- public org.eclipse.core.commands.operations.IUndoContext getUndoContext() Gets the undo context.- Specified by:
- getUndoContextin interface- IPropUndoContext
- Returns:
- The undo context.
 
 - getSelectionEnabler- public SelectionEnabler getSelectionEnabler() Gets the selection enabler instance.- Specified by:
- getSelectionEnablerin interface- IWorkbenchPartIZ
 
 - createPartControl- public void createPartControl(org.eclipse.swt.widgets.Composite parent) Create contents of the view part.- Specified by:
- createPartControlin interface- org.eclipse.ui.IWorkbenchPart
- Specified by:
- createPartControlin class- org.eclipse.ui.part.WorkbenchPart
 
 - updateStates- public void updateStates() Checks for states update.- Specified by:
- updateStatesin interface- IActivationListener
 
 - performConfigureSession- public void performConfigureSession(org.eclipse.swt.widgets.Shell shell, EditorTerminalProps props)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:
- disposein interface- org.eclipse.ui.IWorkbenchPart
- Overrides:
- disposein class- org.eclipse.ui.part.WorkbenchPart
 
 - getExtension- public IPartExtensionIZ getExtension() Gets the extensions framework.- Specified by:
- getExtensionin interface- IWorkbenchPartIZ
 
 - isDisposed- public boolean isDisposed() Checks if the part is disposed of.- Specified by:
- isDisposedin interface- IActivationListener
- Specified by:
- isDisposedin interface- IWorkbenchPartIZ
- Returns:
- true if disposed of, false otherwise.
 
 - setFocus- public void setFocus() Sets focus to the table or to the new sessions link.- Specified by:
- setFocusin interface- org.eclipse.ui.IWorkbenchPart
- Specified by:
- setFocusin class- org.eclipse.ui.part.WorkbenchPart
 
 - onActivated- public void onActivated(boolean on) Called when activator or deactivated.- Specified by:
- onActivatedin interface- IActivationListener
 
 - onClose- public void onClose() Called when about to close, but SWT is still there.- Specified by:
- onClosein interface- IActivationListener
 
 - getUndoRedo- public IPropUndoRedo getUndoRedo() Gets the undo/redo instance.- Specified by:
- getUndoRedoin interface- IWorkbenchPartIZ