Fixed ?
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / template / php / PHPDocContextType.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 net.sourceforge.phpdt.internal.corext.template.TemplateContext;
8
9 /**
10  * A context type for phpdoc.
11  */
12 public class PHPDocContextType extends CompilationUnitContextType {
13
14         /**
15          * Creates a php context type.
16          */
17         public PHPDocContextType() {
18                 super("phpdoc"); //$NON-NLS-1$
19                 
20                 // global
21                 addVariable(new GlobalVariables.Cursor());
22                 addVariable(new GlobalVariables.Dollar());
23                 addVariable(new GlobalVariables.Date());
24                 addVariable(new GlobalVariables.Year());
25                 addVariable(new GlobalVariables.Time());
26                 addVariable(new GlobalVariables.User());
27                 
28                 // compilation unit
29 /*              addVariable(new File());
30                 addVariable(new Method());
31                 addVariable(new ReturnType());
32                 addVariable(new Arguments());
33                 addVariable(new Type());
34                 addVariable(new Package());
35                 addVariable(new Project()); */
36         }
37         
38         /*
39          * @see ContextType#createContext()
40          */     
41         public TemplateContext createContext() {
42                 return new PHPDocContext(this, fDocument, fOffset, fLength); // , fCompilationUnit);
43         }
44
45 }