2 * (c) Copyright IBM Corp. 2000, 2001.
5 package net.sourceforge.phpdt.internal.corext.template.php;
7 //import org.eclipse.jdt.core.ICompilationUnit;
9 import net.sourceforge.phpdt.internal.corext.template.ContextType;
10 import net.sourceforge.phpdt.internal.corext.template.TemplateContext;
11 import net.sourceforge.phpdt.internal.corext.template.TemplateVariable;
14 * A context type for javadoc.
16 public class HTMLContextType extends CompilationUnitContextType {
19 * Creates a java context type.
21 public HTMLContextType() {
22 super("html"); //$NON-NLS-1$
25 addVariable(new GlobalVariables.Cursor());
26 addVariable(new GlobalVariables.Dollar());
27 addVariable(new GlobalVariables.Date());
28 addVariable(new GlobalVariables.Time());
29 addVariable(new GlobalVariables.User());
32 /* addVariable(new File());
33 addVariable(new Method());
34 addVariable(new ReturnType());
35 addVariable(new Arguments());
36 addVariable(new Type());
37 addVariable(new Package());
38 addVariable(new Project());*/
42 * @see ContextType#createContext()
44 public TemplateContext createContext() {
45 return new HTMLUnitContext(this, fDocument, fPosition); //, fCompilationUnit);