本文整理汇总了Java中org.eclipse.xtext.resource.IDerivedStateComputer类的典型用法代码示例。如果您正苦于以下问题:Java IDerivedStateComputer类的具体用法?Java IDerivedStateComputer怎么用?Java IDerivedStateComputer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IDerivedStateComputer类属于org.eclipse.xtext.resource包,在下文中一共展示了IDerivedStateComputer类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getGuiceBindingsRt
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
@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();
}
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:11,代码来源:ModelInferenceFragment.java
示例2: registerGuiceBindingsRt
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
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");
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:35,代码来源:DerivedStateCalculationFragment2.java
示例3: setDerivedStateComputer
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
@Inject
@Override
public void setDerivedStateComputer(IDerivedStateComputer lateInitialization) {
if (derivedStateComputer == null) {
derivedStateComputer = lateInitialization;
}
superDerivedStateComputer = lateInitialization;
super.setDerivedStateComputer(lateInitialization);
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:10,代码来源:InitializingStateAwareResource.java
示例4: bindIDerivedStateComputer
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
return OCCIDerivedStateComputer.class;
}
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:4,代码来源:OCCIRuntimeModule.java
示例5: bindIDerivedStateComputer
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
return JvmModelAssociator.class;
}
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:DefaultXbaseRuntimeModule.java
示例6: bindIDerivedStateComputer
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
/**
* @since 2.2
*/
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
return GrammarResource.LinkingTrigger.class;
}
开发者ID:eclipse,项目名称:xtext-core,代码行数:7,代码来源:XtextRuntimeModule.java
示例7: bindIDerivedStateComputer
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
return DefaultDerivedStateComputer.class;
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:4,代码来源:AbstractComponentRuntimeModule.java
示例8: bindIDerivedStateComputer
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
/** Creates ResourceNames for undeclared variables. */
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer () {
return SadlDerivedStateComputer.class;
}
开发者ID:crapo,项目名称:sadlos2,代码行数:5,代码来源:SadlRuntimeModule.java
示例9: bindIDerivedStateComputer
import org.eclipse.xtext.resource.IDerivedStateComputer; //导入依赖的package包/类
/**
*
*
* @return Class<{@link N4JSDerivedStateComputer}>
*/
public Class<? extends IDerivedStateComputer> bindIDerivedStateComputer() {
return N4JSDerivedStateComputer.class;
}
开发者ID:eclipse,项目名称:n4js,代码行数:9,代码来源:N4JSRuntimeModule.java
注:本文中的org.eclipse.xtext.resource.IDerivedStateComputer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论