protected IDocument fDocument;
/** the completion position within the document string */
- protected int fPosition;
-
+ protected int fOffset;
+
+ /** the completion length */
+ protected int fLength;
+
/** the associated compilation unit, may be <code>null</code> */
//protected ICompilationUnit fCompilationUnit;
/*
/**
* Sets context parameters. Needs to be called before createContext().
*/
- public void setContextParameters(IDocument document, int position) {//, ICompilationUnit compilationUnit) {
+ public void setContextParameters(IDocument document, int position, int length) {//, ICompilationUnit compilationUnit) {
fDocument= document;
- fPosition= position;
+ fOffset= position;
+ fLength= length;
// fCompilationUnit= compilationUnit;
}