public class SessionsView extends ViewPart implements IPropUndoContext, IActivationListener, IWorkbenchPartIZ
Modifier and Type | Field and Description |
---|---|
static String |
ID
The Terminal Sessions View Part ID "com.iizigo.term.session.SessionsView".
|
PROP_TITLE
Constructor and Description |
---|
SessionsView()
Eclipse constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createPartControl(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.
|
IUndoContext |
getUndoContext()
Gets the undo context.
|
IPropUndoRedo |
getUndoRedo()
Gets the undo/redo instance.
|
void |
init(IViewSite site)
Initializes without memento.
|
void |
init(IViewSite site,
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(Shell shell,
EditorTerminalProps props)
Performs new or configure session.
|
void |
saveState(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.
|
checkSite, getViewSite, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onComponentFocused
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
getAdapter
public static final String ID
public static SessionsView getSessionsView(boolean createIfRequired)
createIfRequired
- Flag to create sessions if not created yet.public static void showSessionsView()
public void init(IViewSite site) throws PartInitException
init
in interface IViewPart
init
in class ViewPart
PartInitException
public void init(IViewSite site, IMemento memento) throws PartInitException
init
in interface IViewPart
init
in class ViewPart
PartInitException
public void saveState(IMemento memento)
public IUndoContext getUndoContext()
getUndoContext
in interface IPropUndoContext
public SelectionEnabler getSelectionEnabler()
getSelectionEnabler
in interface IWorkbenchPartIZ
public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
public void updateStates()
updateStates
in interface IActivationListener
public void performConfigureSession(Shell shell, EditorTerminalProps props)
shell
- The shell.props
- The properties to edit configuration of.public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class WorkbenchPart
public IPartExtensionIZ getExtension()
getExtension
in interface IWorkbenchPartIZ
public boolean isDisposed()
isDisposed
in interface IActivationListener
isDisposed
in interface IWorkbenchPartIZ
public void setFocus()
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
public void onActivated(boolean on)
onActivated
in interface IActivationListener
public void onClose()
onClose
in interface IActivationListener
public IPropUndoRedo getUndoRedo()
getUndoRedo
in interface IWorkbenchPartIZ
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.