2 * (c) Copyright IBM Corp. 2000, 2001.
5 package net.sourceforge.phpdt.internal.corext.template.php;
7 import net.sourceforge.phpdt.internal.corext.template.TemplateContext;
10 * A context type for phpdoc.
12 public class PHPDocContextType extends CompilationUnitContextType {
15 * Creates a php context type.
17 public PHPDocContextType() {
18 super("phpdoc"); //$NON-NLS-1$
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());
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()); */
39 * @see ContextType#createContext()
41 public TemplateContext createContext() {
42 return new PHPDocContext(this, fDocument, fOffset, fLength); // , fCompilationUnit);