Class RemoteTerminalView

  • All Implemented Interfaces:
    IActivationListener, IWorkbenchPartIZ, 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 RemoteTerminalView
    extends org.eclipse.ui.part.ViewPart
    implements IActivationListener, IWorkbenchPartIZ
    The Terminal View Part shows one terminal session.
    Christopher Mindus
    • Field Summary

      Modifier and Type Field Description
      static java.lang.String ID
      The Terminal Sessions View Part ID "com.iizigo.term.server.RemoteTerminalView".
      • Fields inherited from interface org.eclipse.ui.IWorkbenchPart

    • Constructor Summary

      Constructor Description
      Eclipse constructor.
    • Method Summary

      All 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.
      IPropUndoRedo getUndoRedo()
      Gets the undo context.
      void init​(org.eclipse.ui.IViewSite site)
      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 setFocus()
      Sets focus to the terminal.
      void updateStates()
      Called when states needs to be updated.
      • Methods inherited from class org.eclipse.ui.part.ViewPart

        checkSite, getViewSite, init, saveState, 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

      • Methods inherited from interface org.eclipse.ui.IWorkbenchPart

        addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
    • Field Detail

      • ID

        public static final java.lang.String ID
        The Terminal Sessions View Part ID "com.iizigo.term.server.RemoteTerminalView".
    • Constructor Detail

      • RemoteTerminalView

        public RemoteTerminalView()
        Eclipse constructor.
    • Method Detail

      • init

        public void init​(org.eclipse.ui.IViewSite site)
                  throws org.eclipse.ui.PartInitException
        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:
        init in interface org.eclipse.ui.IViewPart
        init in class org.eclipse.ui.part.ViewPart
        site - The view site.
        org.eclipse.ui.PartInitException - if this view was not initialized successfully.
      • createPartControl

        public void createPartControl​(org.eclipse.swt.widgets.Composite parent)
        Create contents of the view part.
        Specified by:
        createPartControl in interface org.eclipse.ui.IWorkbenchPart
        Specified by:
        createPartControl in class org.eclipse.ui.part.WorkbenchPart
        parent - Parent composite.
      • dispose

        public void dispose()
        Disposes of the view part.
        Specified by:
        dispose in interface org.eclipse.ui.IWorkbenchPart
        dispose in class org.eclipse.ui.part.WorkbenchPart
      • setFocus

        public void setFocus()
        Sets focus to the terminal.
        Specified by:
        setFocus in interface org.eclipse.ui.IWorkbenchPart
        Specified by:
        setFocus in class org.eclipse.ui.part.WorkbenchPart
      • onActivated

        public void onActivated​(boolean on)
        Called when activator or deactivated.
        Specified by:
        onActivated in interface IActivationListener
      • onClose

        public void onClose()
        Called when about to close, but SWT is still there.
        Specified by:
        onClose in interface IActivationListener