Java Code Examples for org.eclipse.xtext.ui.util.ProjectFactory#addBuilderIds()
The following examples show how to use
org.eclipse.xtext.ui.util.ProjectFactory#addBuilderIds() .
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: XtextProjectCreator.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
private void configurePlainProject(ProjectDescriptor descriptor, ProjectFactory factory) { factory.setProjectName(descriptor.getName()); factory.setLocation(new Path(descriptor.getLocation())); factory.setProjectDefaultCharset(projectInfo.getEncoding().toString()); factory.addWorkingSets(Lists.newArrayList(projectInfo.getWorkingSets())); factory.addContributor(new DescriptorBasedContributor(descriptor)); if (needsM2eIntegration(descriptor)) { factory.addProjectNatures("org.eclipse.m2e.core.maven2Nature"); factory.addBuilderIds("org.eclipse.m2e.core.maven2Builder"); } if (needsBuildshipIntegration(descriptor)) { factory.addProjectNatures("org.eclipse.buildship.core.gradleprojectnature"); factory.addBuilderIds("org.eclipse.buildship.core.gradleprojectbuilder"); factory.addEarlyContributor(new GradleContributor(descriptor)); } }
Example 2
Source File: XtextProjectCreator.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
private IProject createFeatureProject(ProjectDescriptor descriptor, SubMonitor monitor) { ProjectFactory factory = plainProjectProvider.get(); configurePlainProject(descriptor, factory); factory.addProjectNatures("org.eclipse.pde.FeatureNature"); factory.addBuilderIds("org.eclipse.pde.FeatureBuilder"); return factory.createProject(monitor, null); }
Example 3
Source File: AbstractProjectCreator.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected ProjectFactory configureProjectFactory(ProjectFactory factory) { factory.setProjectName(getProjectInfo().getProjectName()); if (projectInfo instanceof IExtendedProjectInfo) { IExtendedProjectInfo extendedProjectInfo = (IExtendedProjectInfo) projectInfo; factory.setLocation(extendedProjectInfo.getLocationPath()); } factory.addFolders(getAllFolders()); factory.addReferencedProjects(getReferencedProjects()); factory.addProjectNatures(getProjectNatures()); factory.addBuilderIds(getBuilders()); return factory; }