| /* |
| * Created on 19/12/2003 |
| * |
| * To change the template for this generated file go to |
| * Window - Preferences - Java - Code Generation - Code and Comments |
| */ |
| package org.eclipse.cdt.internal.corext.template.c; |
| |
| import org.eclipse.cdt.internal.corext.template.ITemplateEditor; |
| import org.eclipse.cdt.internal.corext.template.TemplateContext; |
| |
| /** |
| * @author hamer |
| * |
| * To change the template for this generated type comment go to |
| * Window - Preferences - Java - Code Generation - Code and Comments |
| */ |
| public class CStructureContextType extends CompilationUnitContextType { |
| |
| /** |
| * @param name |
| */ |
| public CStructureContextType() { |
| super(ITemplateEditor.TemplateContextKind.C_STRUCTURE_CONTEXT_TYPE); |
| // global |
| addVariable(new GlobalVariables.Cursor()); |
| addVariable(new GlobalVariables.Dollar()); |
| addVariable(new GlobalVariables.Date()); |
| addVariable(new GlobalVariables.Time()); |
| addVariable(new GlobalVariables.User()); |
| |
| // compilation unit |
| addVariable(new File()); |
| /* addVariable(new Method()); |
| addVariable(new ReturnType()); |
| addVariable(new Arguments()); |
| addVariable(new Type()); |
| addVariable(new Package()); */ |
| addVariable(new Project()); |
| // @@@ Need to add some specific C ones |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.cdt.internal.corext.template.ContextType#createContext() |
| */ |
| public TemplateContext createContext() { |
| return new CContext(this, fString, fPosition, fCompilationUnit); |
| } |
| |
| |
| } |