}
@Override
protected void registerContextTypes(IGrammarAccess grammarAccess,
Provider<XtextTemplateContextType> ctxTypeProvider) {
XturtleGrammarAccess ga = (XturtleGrammarAccess)grammarAccess;
List<XtextTemplateContextType> allContextTypes = Lists.newArrayList();
allContextTypes.add(getType(ga.getDirectiveRule(), ctxTypeProvider));
allContextTypes.add(getType(ga.getSubjectRule(), ctxTypeProvider));
allContextTypes.add(getType(ga.getObjectRule(), ctxTypeProvider));
Collections.sort(allContextTypes);
for (XtextTemplateContextType templateContextType: allContextTypes) {
addContextType(templateContextType);
}
}