本文整理汇总了Java中org.eclipse.xtext.resource.containers.StateBasedContainerManager类的典型用法代码示例。如果您正苦于以下问题:Java StateBasedContainerManager类的具体用法?Java StateBasedContainerManager怎么用?Java StateBasedContainerManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StateBasedContainerManager类属于org.eclipse.xtext.resource.containers包,在下文中一共展示了StateBasedContainerManager类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getGuiceBindingsRt
import org.eclipse.xtext.resource.containers.StateBasedContainerManager; //导入依赖的package包/类
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
return new BindFactory()
.addTypeToType(IContainer.Manager.class.getName(), StateBasedContainerManager.class.getName())
.addTypeToType(IAllContainersState.Provider.class.getName(),
org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class.getName())
.addConfiguredBinding(
IResourceDescriptions.class.getName(),
"binder.bind(" + IResourceDescriptions.class.getName() + ".class"
+ ").to("
+ ResourceSetBasedResourceDescriptions.class.getName() + ".class)")
.addConfiguredBinding(
IResourceDescriptions.class.getName() + "Persisted",
"binder.bind("+ IResourceDescriptions.class.getName() + ".class"
+ ").annotatedWith(com.google.inject.name.Names.named("
+ "org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to("
+ ResourceSetBasedResourceDescriptions.class.getName() + ".class)")
.getBindings();
}
示例2:
import org.eclipse.xtext.resource.containers.StateBasedContainerManager; //导入依赖的package包/类
public Class<? extends IContainer.Manager> bindIContainer$Manager() {
return StateBasedContainerManager.class;
}
示例3:
import org.eclipse.xtext.resource.containers.StateBasedContainerManager; //导入依赖的package包/类
@Override
public Class<? extends IContainer.Manager> bindIContainer$Manager() {
return StateBasedContainerManager.class;
}