added PHPDoc contexts
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / template / php / HTMLContextType.java
index afedb3f..13afed8 100644 (file)
@@ -6,9 +6,7 @@ package net.sourceforge.phpdt.internal.corext.template.php;
 
 //import org.eclipse.jdt.core.ICompilationUnit;
 
-import net.sourceforge.phpdt.internal.corext.template.ContextType;
 import net.sourceforge.phpdt.internal.corext.template.TemplateContext;
-import net.sourceforge.phpdt.internal.corext.template.TemplateVariable;
 
 /**
  * A context type for javadoc.
@@ -25,6 +23,7 @@ public class HTMLContextType 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());
                
@@ -42,7 +41,7 @@ public class HTMLContextType extends CompilationUnitContextType {
         * @see ContextType#createContext()
         */     
        public TemplateContext createContext() {
-               return new HTMLUnitContext(this, fDocument, fPosition); //, fCompilationUnit);
+               return new HTMLUnitContext(this, fDocument, fOffset); //, fCompilationUnit);
        }
 
 }