org.eclipse.xtext.workspace.ProjectConfigProvider Java Examples

The following examples show how to use org.eclipse.xtext.workspace.ProjectConfigProvider. 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: WorkspaceManagerResourceResolver.java    From solidity-ide with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public File resolve(Resource resource) {
	IProjectConfig projectConfig = new ProjectConfigProvider().getProjectConfig(resource.getResourceSet());
	String absoluteResourcePath = projectConfig.getPath().scheme() + ":" + resource.getURI().toFileString();
	return new File(URI.create(absoluteResourcePath));
}
 
Example #2
Source File: DefaultXbaseRuntimeModule.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * @since 2.9
 */
public Class<? extends IProjectConfigProvider> bindProjectConfigProvider() {
	return ProjectConfigProvider.class;
}
 
Example #3
Source File: LiveContainerTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IProjectConfigProvider> bindIProjectConfigProvider() {
	return ProjectConfigProvider.class;
}
 
Example #4
Source File: DefaultIdeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IProjectConfigProvider> bindIProjectConfigProvider() {
	return ProjectConfigProvider.class;
}