org.eclipse.datatools.sqltools.editor.template
Class GenericSQLContextType
java.lang.Object
   org.eclipse.jface.text.templates.TemplateContextType
org.eclipse.jface.text.templates.TemplateContextType
       org.eclipse.datatools.sqltools.editor.template.GenericSQLContextType
org.eclipse.datatools.sqltools.editor.template.GenericSQLContextType
- Direct Known Subclasses: 
- ASAContextType
- public class GenericSQLContextType 
- extends org.eclipse.jface.text.templates.TemplateContextType
A generic SQL context type defines a context within which generic SQL statement templates are resolved. It
 stores a number of TemplateVariableResolvers. A
 TemplateBuffer can be resolved in a
 TemplateContext using the
 TemplateContextType.resolve(TemplateBuffer, TemplateContext) method.
 
 Clients may extend this class to provide vendor specific template support.
 
- Author:
- Hui Cao
 
 
 
| Methods inherited from class org.eclipse.jface.text.templates.TemplateContextType | 
| addResolver, getId, getName, removeAllResolvers, removeResolver, resolve, resolve, resolvers, setId, setName, validate | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SQL_CONTEXT_TYPE
public static final java.lang.String SQL_CONTEXT_TYPE
- This context's id
 
- See Also:
- Constant Field Values
 
GenericSQLContextType
public GenericSQLContextType()
createContext
public GenericSQLContext createContext(org.eclipse.jface.text.IDocument document,
                                       int completionOffset,
                                       int completionLength,
                                       ParsingResult result)
- 
 
getIds
public java.lang.String[] getIds()
- return the compatible context type ids. subclass should override this method.
 
- 
- Returns:
 
getSQLContextId
public java.lang.String getSQLContextId()
- 
- Returns:
- Returns the sQL_CONTEXT_TYPE.