org.eclipse.xtext.resource.containers.IAllContainersState Java Examples

The following examples show how to use org.eclipse.xtext.resource.containers.IAllContainersState. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BuilderIntegrationFragment.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
@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();
}
 
Example #2
Source File: RuntimeResourceSetInitializer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public ResourceSet getInitializedResourceSet(List<String> pathes, UriFilter filter) {
	ResourceSet resourceSet = resourceSetProvider.get();
	Multimap<String, URI> pathToUriMap = getPathToUriMap(pathes, filter);
	IAllContainersState containersState = factory.getContainersState(pathes, pathToUriMap);
	resourceSet.eAdapters().add(new DelegatingIAllContainerAdapter(containersState));
	for (URI uri : pathToUriMap.values()) {
		resourceSet.createResource(uri);
	}
	return resourceSet;
}
 
Example #3
Source File: ImplicitUiFragment.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public Set<Binding> getGuiceBindingsUi(Grammar grammar) {
	BindFactory bindFactory = new BindFactory()
		.addTypeToProviderInstance(
				IAllContainersState.class.getName(),
				"org.eclipse.xtext.ui.shared.Access.getJavaProjectsState()");
	if (XbaseGeneratorFragment.doesUseXbase(grammar)) {
		bindFactory = bindFactory.addTypeToType("org.eclipse.xtext.ui.editor.XtextEditor", "org.eclipse.xtext.xbase.ui.editor.XbaseEditor");
		bindFactory = bindFactory.addTypeToType("org.eclipse.xtext.ui.editor.model.XtextDocumentProvider", "org.eclipse.xtext.xbase.ui.editor.XbaseDocumentProvider");
		bindFactory = bindFactory.addTypeToType("org.eclipse.xtext.ui.generator.trace.OpenGeneratedFileHandler", "org.eclipse.xtext.xbase.ui.generator.trace.XbaseOpenGeneratedFileHandler");
	}
	return bindFactory.getBindings();
}
 
Example #4
Source File: AbstractLookAheadContentAssistTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #5
Source File: AbstractXtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #6
Source File: AbstractBug348427TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #7
Source File: AbstractBug360834TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #8
Source File: AbstractRenameTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() {
	return ResourceSetBasedAllContainersStateProvider.class;
}
 
Example #9
Source File: ContainerState.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
protected ContainerState(final String root, final IAllContainersState globalState) {
  this.root = root;
  this.globalState = globalState;
}
 
Example #10
Source File: AbstractParametersTestLanguageExUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #11
Source File: AbstractBug347012TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #12
Source File: AbstractBug381381TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #13
Source File: AbstractBug288734TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #14
Source File: AbstractBug309949TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #15
Source File: AbstractCrossReferenceProposalTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #16
Source File: DefaultUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() {
	return ContainerStateProvider.class;
}
 
Example #17
Source File: AbstractUnorderedGroupsTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #18
Source File: AbstractSimpleBeeLangTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() {
	return ResourceSetBasedAllContainersStateProvider.class;
}
 
Example #19
Source File: ContainersStateFactory.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public IAllContainersState getContainersState(List<String> paths, Multimap<String, URI> uris) {
	ResourceSetBasedAllContainersState containersState = new ResourceSetBasedAllContainersState();
	containersState.configure(paths, uris);
	return containersState;
}
 
Example #20
Source File: AbstractTwoContextsTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #21
Source File: AbstractDomainModelTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #22
Source File: AbstractBug303200TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #23
Source File: AbstractBug286935TestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #24
Source File: AbstractXbaseUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #25
Source File: CodetemplatesUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Provider<IAllContainersState> provideIAllContainersState() {
	return Access.getWorkspaceProjectsState();
}
 
Example #26
Source File: AbstractOutlineTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #27
Source File: AbstractNoJdtTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() {
	return ResourceSetBasedAllContainersStateProvider.class;
}
 
Example #28
Source File: AbstractImportUriUiTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #29
Source File: AbstractEnumRulesUiTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<? extends IAllContainersState> provideIAllContainersState() {
	return Access.getJavaProjectsState();
}
 
Example #30
Source File: AbstractIndexTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() {
	return ResourceSetBasedAllContainersStateProvider.class;
}