@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(); }
@Override public void configure(Binder binder) { binder.bind(IResourceClusteringPolicy.class).to(DynamicResourceClusteringPolicy.class); }
public Class<? extends IResourceClusteringPolicy> bindIResourceClusteringPolicy() { return DynamicResourceClusteringPolicy.class; }