public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { return SimpleNameProvider.class; }
@Override public Set<Binding> getGuiceBindingsRt(Grammar grammar) { return new BindFactory() .addfinalTypeToType(IQualifiedNameProvider.class.getName(), SimpleNameProvider.class.getName()) .getBindings(); }
@Override public void generate() { new GuiceModuleAccess.BindingFactory().addfinalTypeToType(TypeReference.typeRef(IQualifiedNameProvider.class), TypeReference.typeRef(SimpleNameProvider.class)).contributeTo(this.getLanguage().getRuntimeGenModule()); new GuiceModuleAccess.BindingFactory().addTypeToType(TypeReference.typeRef("org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator"), TypeReference.typeRef("org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator")).contributeTo(this.getLanguage().getEclipsePluginGenModule()); }
@Inject public void setNameProvider(SimpleNameProvider nameProvider) { super.setNameProvider(nameProvider); }