Java 类org.eclipse.xtext.resource.IDerivedStateComputer 实例源码

项目:dsl-devkit    文件:ModelInferenceFragment.java   
@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();
}
项目:CooperateModelingEnvironment    文件:DerivedStateCalculationFragment2.java   
private void registerGuiceBindingsRt() {
    new GuiceModuleAccess.BindingFactory()
            .addTypeToType(typeRef(IAtomicDerivedStateProcessorRegistry.class),
                    typeRef(AtomicDerivedStateProcessorRegistry.class))
            .addTypeToType(typeRef(IDerivedStateProcessor.class), typeRef(DerivedStateProcessor.class))
            .addTypeToType(typeRef(ICDOResourceStateHandler.class), typeRef(DerivedStateProcessor.class))
            .addTypeToType(typeRef(IDerivedStateComputer.class), typeRef(DefaultDerivedStateComputer.class))
            .addTypeToType(typeRef(IDerivedStateComputerSorter.class), getDerivedStateElementComparatorName())

            .addTypeToType(typeRef(ITransientStatusProvider.class),
                    typeRef(DelegatingTransientStatusProvider.class))
            .addTypeToType(typeRef(ITransientValueService.class),
                    typeRef(BasicCooperateTransientValueService.class))
            .addConfiguredBinding(ITransientValueService.class.getSimpleName(), new StringConcatenationClient() {
                @Override
                protected void appendTo(StringConcatenationClient.TargetStringConcatenation builder) {
                    builder.append("binder.bind(");
                    builder.append(org.eclipse.xtext.serializer.sequencer.ITransientValueService.class.getName());
                    builder.append(".class).to(");
                    builder.append(BasicCooperateTransientValueService.class.getName());
                    builder.append(".class);");
                }
            })

            .addTypeToType(typeRef(XtextResource.class), typeRef(InitializingStateAwareResource.class))
            .addTypeToType(typeRef(IResourceDescription.Manager.class),
                    typeRef(DerivedStateAwareResourceDescriptionManager.class))
            .contributeTo(getLanguage().getRuntimeGenModule());

    Set<String> requiredBundles = getProjectConfig().getRuntime().getManifest().getRequiredBundles();

    requiredBundles.add("de.cooperateproject.modeling.textual.xtext.runtime;visibility:=reexport");
    requiredBundles.add("de.cooperateproject.modeling.textual.common;visibility:=reexport");
}
项目:CooperateModelingEnvironment    文件:InitializingStateAwareResource.java   
@Inject
@Override
public void setDerivedStateComputer(IDerivedStateComputer lateInitialization) {
    if (derivedStateComputer == null) {
        derivedStateComputer = lateInitialization;
    }
    superDerivedStateComputer = lateInitialization;
    super.setDerivedStateComputer(lateInitialization);
}
项目:OCCI-Studio    文件:OCCIRuntimeModule.java   
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
  return OCCIDerivedStateComputer.class;
}
项目:xtext-extras    文件:DefaultXbaseRuntimeModule.java   
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
    return JvmModelAssociator.class;
}
项目:xtext-core    文件:XtextRuntimeModule.java   
/**
 * @since 2.2
 */
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
    return GrammarResource.LinkingTrigger.class;
}
项目:CooperateModelingEnvironment    文件:AbstractComponentRuntimeModule.java   
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
    return DefaultDerivedStateComputer.class;
}
项目:CooperateModelingEnvironment    文件:AbstractClsRuntimeModule.java   
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
    return DefaultDerivedStateComputer.class;
}
项目:CooperateModelingEnvironment    文件:AbstractUsecaseRuntimeModule.java   
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
    return DefaultDerivedStateComputer.class;
}
项目:sadlos2    文件:SadlRuntimeModule.java   
/** Creates ResourceNames for undeclared variables. */
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer () {
    return SadlDerivedStateComputer.class;
}
项目:n4js    文件:N4JSRuntimeModule.java   
/**
 *
 *
 * @return Class<{@link N4JSDerivedStateComputer}>
 */
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
    return N4JSDerivedStateComputer.class;
}