afedb3ffa33f9514f2c8d48340405c3a9a7f5ad5
[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.ContextType;
10 import net.sourceforge.phpdt.internal.corext.template.TemplateContext;
11 import net.sourceforge.phpdt.internal.corext.template.TemplateVariable;
12
13 /**
14  * A context type for javadoc.
15  */
16 public class HTMLContextType extends CompilationUnitContextType {
17
18         /**
19          * Creates a java context type.
20          */
21         public HTMLContextType() {
22                 super("html"); //$NON-NLS-1$
23                 
24                 // global
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());
30                 
31                 // compilation unit
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());*/
39         }
40         
41         /*
42          * @see ContextType#createContext()
43          */     
44         public TemplateContext createContext() {
45                 return new HTMLUnitContext(this, fDocument, fPosition); //, fCompilationUnit);
46         }
47
48 }