org.eclipse.xtext.workspace.IProjectConfigProvider Java Examples

The following examples show how to use org.eclipse.xtext.workspace.IProjectConfigProvider. 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: JavaIoFileSystemTest.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
@Before
public void setUp() {
  try {
    final File tempDir = this.temporaryFolder.newFolder();
    JavaIOFileSystemSupport _javaIOFileSystemSupport = new JavaIOFileSystemSupport();
    final Procedure1<JavaIOFileSystemSupport> _function = (JavaIOFileSystemSupport it) -> {
      final IProjectConfigProvider _function_1 = (ResourceSet it_1) -> {
        File _file = new File(tempDir, "foo");
        FileProjectConfig _fileProjectConfig = new FileProjectConfig(_file);
        final Procedure1<FileProjectConfig> _function_2 = (FileProjectConfig it_2) -> {
          it_2.addSourceFolder("src");
        };
        return ObjectExtensions.<FileProjectConfig>operator_doubleArrow(_fileProjectConfig, _function_2);
      };
      it.setProjectConfigProvider(_function_1);
      IEncodingProvider.Runtime _runtime = new IEncodingProvider.Runtime();
      it.setEncodingProvider(_runtime);
      XtextResourceSet _xtextResourceSet = new XtextResourceSet();
      it.setContext(_xtextResourceSet);
    };
    JavaIOFileSystemSupport _doubleArrow = ObjectExtensions.<JavaIOFileSystemSupport>operator_doubleArrow(_javaIOFileSystemSupport, _function);
    this.fs = _doubleArrow;
    this.createProject("foo");
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
 
Example #2
Source File: JavaIoFileSystemTest.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
@Before
public void setUp() {
  try {
    final File tempDir = this.temporaryFolder.newFolder();
    JavaIOFileSystemSupport _javaIOFileSystemSupport = new JavaIOFileSystemSupport();
    final Procedure1<JavaIOFileSystemSupport> _function = (JavaIOFileSystemSupport it) -> {
      final IProjectConfigProvider _function_1 = (ResourceSet it_1) -> {
        File _file = new File(tempDir, "foo");
        FileProjectConfig _fileProjectConfig = new FileProjectConfig(_file);
        final Procedure1<FileProjectConfig> _function_2 = (FileProjectConfig it_2) -> {
          it_2.addSourceFolder("src");
        };
        return ObjectExtensions.<FileProjectConfig>operator_doubleArrow(_fileProjectConfig, _function_2);
      };
      it.setProjectConfigProvider(_function_1);
      IEncodingProvider.Runtime _runtime = new IEncodingProvider.Runtime();
      it.setEncodingProvider(_runtime);
      XtextResourceSet _xtextResourceSet = new XtextResourceSet();
      it.setContext(_xtextResourceSet);
    };
    JavaIOFileSystemSupport _doubleArrow = ObjectExtensions.<JavaIOFileSystemSupport>operator_doubleArrow(_javaIOFileSystemSupport, _function);
    this.fs = _doubleArrow;
    this.createProject("foo");
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
 
Example #3
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 #4
Source File: DefaultUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * @since 2.9
 */
public Class<? extends IProjectConfigProvider> bindProjectConfigProvider() {
	return EclipseProjectConfigProvider.class;
}
 
Example #5
Source File: FileLocationsImpl.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Pure
public IProjectConfigProvider getProjectInformationProvider() {
  return this.projectInformationProvider;
}
 
Example #6
Source File: FileLocationsImpl.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public void setProjectInformationProvider(final IProjectConfigProvider projectInformationProvider) {
  this.projectInformationProvider = projectInformationProvider;
}
 
Example #7
Source File: AbstractFileSystemSupport.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Pure
public IProjectConfigProvider getProjectConfigProvider() {
  return this.projectConfigProvider;
}
 
Example #8
Source File: AbstractFileSystemSupport.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public void setProjectConfigProvider(final IProjectConfigProvider projectConfigProvider) {
  this.projectConfigProvider = projectConfigProvider;
}
 
Example #9
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 #10
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;
}