added PHPDoc contexts
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / template / php / CompilationUnitContextType.java
index d621639..aa3f8ad 100644 (file)
@@ -17,8 +17,11 @@ public abstract class CompilationUnitContextType extends ContextType {
        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;
 /*
@@ -140,9 +143,10 @@ public abstract class CompilationUnitContextType extends ContextType {
        /**
         * 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;
        }