2 * (c) Copyright IBM Corp. 2000, 2001.
5 package net.sourceforge.phpdt.internal.corext.template.php;
7 //import org.eclipse.jdt.core.ICompilationUnit;
9 import net.sourceforge.phpdt.core.ICompilationUnit;
11 import org.eclipse.jface.text.IDocument;
14 * A context type for javadoc.
16 public class HTMLContextType extends CompilationUnitContextType {
19 * Creates a java context type.
21 public HTMLContextType() {
22 super("html"); //$NON-NLS-1$
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());
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());*/
43 * @see ContextType#createContext()
45 public CompilationUnitContext createContext(IDocument document, int offset, int length, ICompilationUnit compilationUnit) {
46 return new HTMLUnitContext(this, document, offset, length, compilationUnit);
49 * @see org.eclipse.jdt.internal.corext.template.java.CompilationUnitContextType#createContext(org.eclipse.jface.text.IDocument, int, int, org.eclipse.jdt.core.ICompilationUnit)
51 // public CompilationUnitContext createContext(IDocument document, int offset, int length, ICompilationUnit compilationUnit) {
52 // return new JavaDocContext(this, document, offset, length, compilationUnit);