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
FieldsFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreatePartControl(org.eclipse.swt.widgets.Composite parent) voiddispose()static booleangetName()static booleanvoidinit(org.eclipse.ui.IViewSite site) voidsetFocus()static voidsetMoveToTopOnUpdate(boolean moveToTopOnUpdate) static voidsetScrollLock(boolean scrollLock) voidvoidvoidThis method accepts information for the terminal to display to the user.voidwriteInput(TerminalInput input) 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, removePropertyListener
-
Field Details
-
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:
initin interfaceorg.eclipse.ui.IViewPart- Overrides:
initin classorg.eclipse.ui.part.ViewPart- Throws:
org.eclipse.ui.PartInitException
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart
-
getName
-
update
- Specified by:
updatein interfacegda.observable.IObserver
-
writeInput
- Specified by:
writeInputin interfaceTerminal
-
write
Description copied from interface:TerminalThis method accepts information for the terminal to display to the user. -
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
setFocusin classorg.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:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-