added PHPDoc contexts
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / template / php / PHPContextType.java
index c6cd4d2..608a93a 100644 (file)
@@ -78,6 +78,7 @@ public class PHPContextType extends CompilationUnitContextType {
                addVariable(new GlobalVariables.Cursor());
                addVariable(new GlobalVariables.Dollar());
                addVariable(new GlobalVariables.Date());
+    addVariable(new GlobalVariables.Year());
                addVariable(new GlobalVariables.Time());
                addVariable(new GlobalVariables.User());
                
@@ -103,7 +104,7 @@ public class PHPContextType extends CompilationUnitContextType {
         * @see ContextType#createContext()
         */     
        public TemplateContext createContext() {
-               return new PHPUnitContext(this, fDocument, fPosition); //, fCompilationUnit);
+               return new PHPUnitContext(this, fDocument, fOffset); //, fCompilationUnit);
        }
 
 }