org.eclipse.cdt.internal.corext.template.c
Class CommentContextType

java.lang.Object
  extended by org.eclipse.jface.text.templates.TemplateContextType
      extended by org.eclipse.cdt.internal.corext.template.c.TranslationUnitContextType
          extended by org.eclipse.cdt.internal.corext.template.c.CommentContextType

public class CommentContextType
extends TranslationUnitContextType

A context type for comments.

Since:
4.0

Field Summary
static java.lang.String ID
           
 
Constructor Summary
CommentContextType()
          Creates a comment context type.
 
Method Summary
 TranslationUnitContext createContext(org.eclipse.jface.text.IDocument document, int offset, int length, org.eclipse.cdt.core.model.ITranslationUnit translationUnit)
           
 TranslationUnitContext createContext(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.Position position, org.eclipse.cdt.core.model.ITranslationUnit translationUnit)
           
 
Methods inherited from class org.eclipse.jface.text.templates.TemplateContextType
addResolver, getId, getName, removeAllResolvers, removeResolver, resolve, resolvers, setId, setName, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

CommentContextType

public CommentContextType()
Creates a comment context type.

Method Detail

createContext

public TranslationUnitContext createContext(org.eclipse.jface.text.IDocument document,
                                            int offset,
                                            int length,
                                            org.eclipse.cdt.core.model.ITranslationUnit translationUnit)
Specified by:
createContext in class TranslationUnitContextType

createContext

public TranslationUnitContext createContext(org.eclipse.jface.text.IDocument document,
                                            org.eclipse.jface.text.Position position,
                                            org.eclipse.cdt.core.model.ITranslationUnit translationUnit)
Specified by:
createContext in class TranslationUnitContextType