improved PHP parser
[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 net.sourceforge.phpdt.core.ICompilationUnit;
8
9 import net.sourceforge.phpdt.core.ICompilationUnit;
10
11 import org.eclipse.jface.text.IDocument;
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.Year());
29 //              addVariable(new GlobalVariables.Time());
30 //              addVariable(new GlobalVariables.User());
31                 
32                 // compilation unit
33         /*      addVariable(new File());
34                 addVariable(new Method());
35                 addVariable(new ReturnType());
36                 addVariable(new Arguments());
37                 addVariable(new Type());
38                 addVariable(new Package());
39                 addVariable(new Project());*/
40         }
41         
42         /*
43          * @see ContextType#createContext()
44          */     
45         public CompilationUnitContext createContext(IDocument document, int offset, int length, ICompilationUnit compilationUnit) {
46                         return new HTMLUnitContext(this, document, offset, length, compilationUnit); 
47         }
48         /* (non-Javadoc)
49          * @see net.sourceforge.phpdt.internal.corext.template.java.CompilationUnitContextType#createContext(org.eclipse.jface.text.IDocument, int, int, net.sourceforge.phpdt.core.ICompilationUnit)
50          */
51 //      public CompilationUnitContext createContext(IDocument document, int offset, int length, ICompilationUnit compilationUnit) {
52 //              return new JavaDocContext(this, document, offset, length, compilationUnit);
53 //      }
54 }