org.ocleditor.internal.ui.editor
Class OclWordPartDetector

java.lang.Object
  extended byorg.ocleditor.internal.ui.editor.OclWordPartDetector

public class OclWordPartDetector
extends java.lang.Object

This class can be used to detect a word part at a given offset.


Constructor Summary
OclWordPartDetector(org.eclipse.jface.text.ITextViewer viewer, int documentOffset)
          Default constructor.
 
Method Summary
 int getOffset()
           
 java.lang.String getString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OclWordPartDetector

public OclWordPartDetector(org.eclipse.jface.text.ITextViewer viewer,
                           int documentOffset)
Default constructor.

Parameters:
viewer - is a text viewer.
documentOffset - into the OCL document.
Method Detail

getString

public java.lang.String getString()
Returns:
the detected word part.

getOffset

public int getOffset()
Returns:
the offset of the detected word part.