Package com.iizigo.term.server
Class RemoteTerminalView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.iizigo.term.server.RemoteTerminalView
- All Implemented Interfaces:
IActivationListener,IWorkbenchPartIZ,IDisposedPart,IAdaptable,IExecutableExtension,IPersistable,IViewPart,IWorkbenchPart,IWorkbenchPart2,IWorkbenchPart3,IWorkbenchPartOrientation
The Terminal View Part shows one terminal session.
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Terminal Sessions View Part ID "com.iizigo.term.server.RemoteTerminalView".Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLEConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionvoidcreatePartControl(Composite parent) Create contents of the view part.voiddispose()Disposes of the view part.Gets the extensions framework.Gets the selection enabler instance.Gets the undo context.voidInitializes this view with the given view site.booleanChecks if the part is disposed of.voidonActivated(boolean on) Called when activator or deactivated.voidonClose()Called when about to close, but SWT is still there.voidsetFocus()Sets focus to the terminal.voidCalled when states needs to be updated.Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListenerMethods inherited from interface com.iizigo.editor.IWorkbenchPartIZ
onComponentFocused
Field Details
ID
The Terminal Sessions View Part ID "com.iizigo.term.server.RemoteTerminalView".
Constructor Details
RemoteTerminalView
public RemoteTerminalView()Eclipse constructor.
Method Details
init
Initializes this view with the given view site.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.
- Specified by:
initin interfaceIViewPart- Overrides:
initin classViewPart- Parameters:
site- The view site.- Throws:
PartInitException- if this view was not initialized successfully.
createPartControl
Create contents of the view part.- Specified by:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart- Parameters:
parent- Parent composite.
dispose
public void dispose()Disposes of the view part.- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classWorkbenchPart
getExtension
Gets the extensions framework.- Specified by:
getExtensionin interfaceIWorkbenchPartIZ
getSelectionEnabler
Gets the selection enabler instance.- Specified by:
getSelectionEnablerin interfaceIWorkbenchPartIZ
isDisposed
public boolean isDisposed()Checks if the part is disposed of.- Specified by:
isDisposedin interfaceIActivationListener- Specified by:
isDisposedin interfaceIDisposedPart- Specified by:
isDisposedin interfaceIWorkbenchPartIZ- Returns:
- true if disposed of, false otherwise.
setFocus
public void setFocus()Sets focus to the terminal.- Specified by:
setFocusin interfaceIWorkbenchPart- Specified by:
setFocusin classWorkbenchPart
updateStates
public void updateStates()Called when states needs to be updated.- Specified by:
updateStatesin interfaceIActivationListener
onActivated
public void onActivated(boolean on) Called when activator or deactivated.- Specified by:
onActivatedin interfaceIActivationListener
onClose
public void onClose()Called when about to close, but SWT is still there.- Specified by:
onClosein interfaceIActivationListener
getUndoRedo
Gets the undo context.- Specified by:
getUndoRedoin interfaceIWorkbenchPartIZ