13afed8debe6baf98c3f691f54c0dce4b6e209c5
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / template / php / HTMLContextType.java
1 /*
2  * (c) Copyright IBM Corp. 2000, 2001.
3  * All Rights Reserved.
4  */
5 package net.sourceforge.phpdt.internal.corext.template.php;
6
7 //import org.eclipse.jdt.core.ICompilationUnit;
8
9 import net.sourceforge.phpdt.internal.corext.template.TemplateContext;
10
11 /**
12  * A context type for javadoc.
13  */
14 public class HTMLContextType extends CompilationUnitContextType {
15
16         /**
17          * Creates a java context type.
18          */
19         public HTMLContextType() {
20                 super("html"); //$NON-NLS-1$
21                 
22                 // global
23                 addVariable(new GlobalVariables.Cursor());
24                 addVariable(new GlobalVariables.Dollar());
25                 addVariable(new GlobalVariables.Date());
26     addVariable(new GlobalVariables.Year());
27                 addVariable(new GlobalVariables.Time());
28                 addVariable(new GlobalVariables.User());
29                 
30                 // compilation unit
31         /*      addVariable(new File());
32                 addVariable(new Method());
33                 addVariable(new ReturnType());
34                 addVariable(new Arguments());
35                 addVariable(new Type());
36                 addVariable(new Package());
37                 addVariable(new Project());*/
38         }
39         
40         /*
41          * @see ContextType#createContext()
42          */     
43         public TemplateContext createContext() {
44                 return new HTMLUnitContext(this, fDocument, fOffset); //, fCompilationUnit);
45         }
46
47 }