Package gda.rcp.views

Class JythonTerminalView

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
gda.rcp.views.JythonTerminalView
All Implemented Interfaces:
IScanDataPointObserver, Terminal, gda.observable.IObserver, 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 JythonTerminalView extends org.eclipse.ui.part.ViewPart implements IScanDataPointObserver, Terminal
Design to look and act like a command terminal for the GDA Jython Interpreter. NOTE: Currently this class does not work unless it is a top most view when the user goes to a perspective containing it. This is because eclipse only makes a view when it is visible. To fix this UIScanDataPointService could be used to tell this view of previous scan data points missed by the view not being present. For now always use this view as a default visible one and this issue will not be as bad.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    ID of this view.

    Fields inherited from interface org.eclipse.ui.IWorkbenchPart

    PROP_TITLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    createPartControl(org.eclipse.swt.widgets.Composite parent)
     
    void
     
    static boolean
     
     
    static boolean
     
    void
    init(org.eclipse.ui.IViewSite site)
     
    void
     
    static void
    setMoveToTopOnUpdate(boolean moveToTopOnUpdate)
     
    static void
    setScrollLock(boolean scrollLock)
     
    void
     
    void
    update(Object theObserved, Object changeCode)
     
    void
    write(String output)
    This method accepts information for the terminal to display to the user.
    void
     

    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

    getAdapter

    Methods inherited from interface org.eclipse.ui.IWorkbenchPart

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

    • ID

      public static final String ID
      ID of this view. Referenced by string to reduce dependencies in places, refactor will not work.
      See Also:
  • Constructor Details

    • JythonTerminalView

      public JythonTerminalView()
  • Method Details

    • init

      public void init(org.eclipse.ui.IViewSite site) throws org.eclipse.ui.PartInitException
      Specified by:
      init in interface org.eclipse.ui.IViewPart
      Overrides:
      init in class org.eclipse.ui.part.ViewPart
      Throws:
      org.eclipse.ui.PartInitException
    • createPartControl

      public void createPartControl(org.eclipse.swt.widgets.Composite parent)
      Specified by:
      createPartControl in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      createPartControl in class org.eclipse.ui.part.WorkbenchPart
    • getName

      public String getName()
    • update

      public void update(Object theObserved, Object changeCode)
      Specified by:
      update in interface gda.observable.IObserver
    • writeInput

      public void writeInput(TerminalInput input)
      Specified by:
      writeInput in interface Terminal
    • write

      public void write(String output)
      Description copied from interface: Terminal
      This method accepts information for the terminal to display to the user.
      Specified by:
      write in interface Terminal
      Parameters:
      output -
    • setFocus

      public void setFocus()
      Specified by:
      setFocus in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      setFocus in class org.eclipse.ui.part.WorkbenchPart
    • startNewOutputFile

      public void startNewOutputFile()
    • getScrollLock

      public static boolean getScrollLock()
    • setScrollLock

      public static void setScrollLock(boolean scrollLock)
    • getMoveToTopOnUpdate

      public static boolean getMoveToTopOnUpdate()
    • setMoveToTopOnUpdate

      public static void setMoveToTopOnUpdate(boolean moveToTopOnUpdate)
    • clearConsole

      public void clearConsole()
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class org.eclipse.ui.part.WorkbenchPart