org.eclipse.xtext.ui.editor.templates
Class XtextTemplateContextTypeRegistry

java.lang.Object
  extended by org.eclipse.jface.text.templates.ContextTypeRegistry
      extended by org.eclipse.xtext.ui.editor.templates.XtextTemplateContextTypeRegistry

public class XtextTemplateContextTypeRegistry
extends org.eclipse.jface.text.templates.ContextTypeRegistry

Author:
Sven Efftinge - Initial contribution and API, Michael Clay

Constructor Summary
XtextTemplateContextTypeRegistry(IGrammarAccess grammarAccess, com.google.inject.Provider<XtextTemplateContextType> ctxTypeProvider, ContextTypeIdHelper helper)
           
 
Method Summary
 ContextTypeIdHelper getHelper()
           
 java.lang.String getId(Keyword k)
           
 java.lang.String getId(ParserRule parserRule)
           
protected  void registerContextTypes(IGrammarAccess grammarAccess, com.google.inject.Provider<XtextTemplateContextType> ctxTypeProvider)
           
 
Methods inherited from class org.eclipse.jface.text.templates.ContextTypeRegistry
addContextType, contextTypes, getContextType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtextTemplateContextTypeRegistry

@Inject
public XtextTemplateContextTypeRegistry(IGrammarAccess grammarAccess,
                                               com.google.inject.Provider<XtextTemplateContextType> ctxTypeProvider,
                                               ContextTypeIdHelper helper)
Method Detail

registerContextTypes

protected void registerContextTypes(IGrammarAccess grammarAccess,
                                    com.google.inject.Provider<XtextTemplateContextType> ctxTypeProvider)

getId

public java.lang.String getId(Keyword k)

getId

public java.lang.String getId(ParserRule parserRule)

getHelper

public ContextTypeIdHelper getHelper()