org.dawb.tango.extensions.console
Class TangoSpecPartitioner

java.lang.Object
  extended by 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


Constructor Summary
TangoSpecPartitioner(java.lang.String specName)
           
 
Method Summary
 org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset, int length)
           
 void connect(org.eclipse.jface.text.IDocument document)
           
 void connectSpec()
           
 void disconnect()
           
 void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
           
 boolean documentChanged(org.eclipse.jface.text.DocumentEvent event)
           
 java.lang.String getContentType(int offset)
           
 java.lang.String[] getLegalContentTypes()
           
 org.eclipse.jface.text.ITypedRegion getPartition(int offset)
           
 int getPromptLocation()
           
 org.eclipse.swt.custom.StyleRange[] getStyleRanges(int offset, int start)
           
 org.eclipse.jface.text.TextViewer getTextViewer()
           
 boolean isReadOnly(int offset)
           
 void moveCommand(int direction)
           
 void resetCommandPosition()
           
 boolean runCommand()
           
 void setTextViewer(org.eclipse.jface.text.TextViewer textViewer)
           
 void tangoEventPerformed(TangoConnectionEvent event)
          Events from tango connection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TangoSpecPartitioner

public TangoSpecPartitioner(java.lang.String specName)
Method Detail

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)