org.eclipse.xtext.resource.IDerivedStateComputer Java Examples

The following examples show how to use org.eclipse.xtext.resource.IDerivedStateComputer. 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: ModelInferenceFragment.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public Set<Binding> getGuiceBindingsRt(final Grammar grammar) {
  BindFactory factory = new BindFactory();
  if (generateModelInference) {
    factory.addTypeToTypeSingleton(IInferredModelAssociations.class.getName(), InferredModelAssociator.class.getName());
    factory.addTypeToTypeSingleton(IInferredModelAssociator.class.getName(), InferredModelAssociator.class.getName());
    factory.addTypeToTypeSingleton(IDerivedStateComputer.class.getName(), InferredModelAssociator.class.getName());
  }
  return factory.getBindings();
}
 
Example #2
Source File: DefaultXbaseRuntimeModule.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
	return JvmModelAssociator.class;
}
 
Example #3
Source File: XtextRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * @since 2.2
 */
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
	return GrammarResource.LinkingTrigger.class;
}
 
Example #4
Source File: N4JSRuntimeModule.java    From n4js with Eclipse Public License 1.0 2 votes vote down vote up
/**
 *
 *
 * @return Class<{@link N4JSDerivedStateComputer}>
 */
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
	return N4JSDerivedStateComputer.class;
}