public class TerminalView extends ViewPart implements ITerminalStateListener, IActivationListener, IWorkbenchPartIZ
Modifier and Type | Field and Description |
---|---|
static String |
ID
The Terminal Sessions View Part ID "com.iizigo.term.TerminalView".
|
PROP_TITLE
Constructor and Description |
---|
TerminalView()
Eclipse constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
createOrShow(Shell shell,
EditorTerminalProps props)
Creates a TerminalView for properties, or shows an existing one.
|
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.
|
IPropUndoRedo |
getUndoRedo()
Gets the undo context.
|
boolean |
hasHostSession()
Checks if a host session is created.
|
void |
init(IViewSite site)
Initializes this view with the given view site.
|
void |
init(IViewSite site,
IMemento memento)
Initializes this view with the given view site.
|
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 |
onTerminalFieldChanged(HostSession hostSession,
TerminalWindow tw)
Called when the screen needs updates due to field change.
|
void |
onTerminalStateUpdate(HostSession hostSession,
TerminalWindow tw)
Called when state probably needs update or check.
|
void |
saveState(IMemento memento)
Saves the object state within a memento.
|
void |
setFocus()
Sets focus to the terminal.
|
void |
updateStates()
Called when states needs to be updated.
|
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 void createOrShow(Shell shell, EditorTerminalProps props)
shell
- The shell.props
- The terminal properties.public boolean hasHostSession()
public void init(IViewSite site) throws PartInitException
This method is automatically called by the workbench shortly after the part is instantiated. It marks the start of the views's life cycle. Clients must not call this method.
init
in interface IViewPart
init
in class ViewPart
site
- The view site.PartInitException
- if this view was not initialized successfully.public void init(IViewSite site, IMemento memento) throws PartInitException
This method is automatically called by the workbench shortly after the part is instantiated. It marks the start of the views's life cycle. Clients must not call this method.
init
in interface IViewPart
init
in class ViewPart
site
- The view sitememento
- The IViewPart state or null if there is no previous saved state.PartInitException
- if this view was not initialized successfully.public void saveState(IMemento memento)
public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
parent
- The parent composite.public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class WorkbenchPart
public IPartExtensionIZ getExtension()
getExtension
in interface IWorkbenchPartIZ
public SelectionEnabler getSelectionEnabler()
getSelectionEnabler
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 onTerminalStateUpdate(HostSession hostSession, TerminalWindow tw)
onTerminalStateUpdate
in interface ITerminalStateListener
hostSession
- The host session, may be null.tw
- The TerminalWindow, may be null when hostSession is null, not otherwise.public void onTerminalFieldChanged(HostSession hostSession, TerminalWindow tw)
onTerminalFieldChanged
in interface ITerminalStateListener
hostSession
- The host session, may be null.tw
- The TerminalWindow, may be null when hostSession is null, not otherwise.public void updateStates()
updateStates
in interface IActivationListener
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.