Java 类org.eclipse.xtext.resource.clustering.DynamicResourceClusteringPolicy 实例源码

项目:gama    文件:GamlUiModule.java   
@Override
public void configure(final Binder binder) {

    super.configure(binder);
    binder.bind(String.class).annotatedWith(
            com.google.inject.name.Names.named(XtextContentAssistProcessor.COMPLETION_AUTO_ACTIVATION_CHARS))
            .toInstance(".");

    binder.bind(IResourceLoader.class).toProvider(ResourceLoaderProviders.getParallelLoader());
    binder.bind(IResourceClusteringPolicy.class).to(DynamicResourceClusteringPolicy.class);
    binder.bind(IModelRunner.class).to(ModelRunner.class);
    // binder.bind(XtextDocumentProvider.class).to(XtextDocumentProvider.class);
    binder.bind(IMarkerUpdater.class).to(GamlMarkerUpdater.class);
    binder.bind(IGamlLabelProvider.class).to(GamlLabelProvider.class).asEagerSingleton();
}
项目:statecharts    文件:OverridingGuiceModule.java   
@Override
public void configure(Binder binder) {
    binder.bind(IResourceClusteringPolicy.class).to(DynamicResourceClusteringPolicy.class);
}
项目:statecharts    文件:STextUiModule.java   
public Class<? extends IResourceClusteringPolicy> bindIResourceClusteringPolicy() {
    return DynamicResourceClusteringPolicy.class;
}