org.dawb.tango.extensions.console
Class TangoSpecPartitioner
java.lang.Object
org.dawb.tango.extensions.console.TangoSpecPartitioner
- All Implemented Interfaces:
- TangoConnectionListener, org.eclipse.jface.text.IDocumentPartitioner, org.eclipse.ui.console.IConsoleDocumentPartitioner
public class TangoSpecPartitioner
- extends java.lang.Object
- implements org.eclipse.ui.console.IConsoleDocumentPartitioner, TangoConnectionListener
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TangoSpecPartitioner
public TangoSpecPartitioner(java.lang.String specName)
connect
public void connect(org.eclipse.jface.text.IDocument document)
- Specified by:
connect
in interface org.eclipse.jface.text.IDocumentPartitioner
connectSpec
public void connectSpec()
throws java.lang.Exception
- Throws:
java.lang.Exception
disconnect
public void disconnect()
- Specified by:
disconnect
in interface org.eclipse.jface.text.IDocumentPartitioner
documentAboutToBeChanged
public void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
- Specified by:
documentAboutToBeChanged
in interface org.eclipse.jface.text.IDocumentPartitioner
documentChanged
public boolean documentChanged(org.eclipse.jface.text.DocumentEvent event)
- Specified by:
documentChanged
in interface org.eclipse.jface.text.IDocumentPartitioner
runCommand
public boolean runCommand()
tangoEventPerformed
public void tangoEventPerformed(TangoConnectionEvent event)
- Description copied from interface:
TangoConnectionListener
- Events from tango connection
- Specified by:
tangoEventPerformed
in interface TangoConnectionListener
getLegalContentTypes
public java.lang.String[] getLegalContentTypes()
- Specified by:
getLegalContentTypes
in interface org.eclipse.jface.text.IDocumentPartitioner
getContentType
public java.lang.String getContentType(int offset)
- Specified by:
getContentType
in interface org.eclipse.jface.text.IDocumentPartitioner
computePartitioning
public org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset,
int length)
- Specified by:
computePartitioning
in interface org.eclipse.jface.text.IDocumentPartitioner
getPartition
public org.eclipse.jface.text.ITypedRegion getPartition(int offset)
- Specified by:
getPartition
in interface org.eclipse.jface.text.IDocumentPartitioner
isReadOnly
public boolean isReadOnly(int offset)
- Specified by:
isReadOnly
in interface org.eclipse.ui.console.IConsoleDocumentPartitioner
getStyleRanges
public org.eclipse.swt.custom.StyleRange[] getStyleRanges(int offset,
int start)
- Specified by:
getStyleRanges
in interface org.eclipse.ui.console.IConsoleDocumentPartitioner
getTextViewer
public org.eclipse.jface.text.TextViewer getTextViewer()
setTextViewer
public void setTextViewer(org.eclipse.jface.text.TextViewer textViewer)
getPromptLocation
public int getPromptLocation()
resetCommandPosition
public void resetCommandPosition()
moveCommand
public void moveCommand(int direction)