@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(); }
public Class<? extends IContainer.Manager> bindIContainer$Manager() { return StateBasedContainerManager.class; }
@Override public Class<? extends IContainer.Manager> bindIContainer$Manager() { return StateBasedContainerManager.class; }