org.eclipse.xtext.naming.SimpleNameProvider Java Examples
The following examples show how to use
org.eclipse.xtext.naming.SimpleNameProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SimpleNamesFragment2.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@Override public void generate() { new GuiceModuleAccess.BindingFactory() .addfinalTypeToType(TypeReference.typeRef(IQualifiedNameProvider.class), TypeReference.typeRef(SimpleNameProvider.class)) .contributeTo(getLanguage().getRuntimeGenModule()); new GuiceModuleAccess.BindingFactory() .addTypeToType(TypeReference.typeRef("org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator"), TypeReference .typeRef("org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator")) .contributeTo(getLanguage().getEclipsePluginGenModule()); }
Example #2
Source File: AbstractN4JSRuntimeModule.java From n4js with Eclipse Public License 1.0 | 4 votes |
public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { return SimpleNameProvider.class; }
Example #3
Source File: SimpleNamesFragment.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@Override public Set<Binding> getGuiceBindingsRt(Grammar grammar) { return new BindFactory() .addfinalTypeToType(IQualifiedNameProvider.class.getName(), SimpleNameProvider.class.getName()) .getBindings(); }
Example #4
Source File: AbstractGenericResourceRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { return SimpleNameProvider.class; }
Example #5
Source File: DefaultRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { return SimpleNameProvider.class; }