use of org.eclipse.xtext.xtext.wizard.RuntimeProjectDescriptor in project xtext-core by eclipse.
the class WizardConfigurationTest method eclipsePluginsAreBuiltWithTychoWhenMavenBuiltIsEnabled.
@Test
public void eclipsePluginsAreBuiltWithTychoWhenMavenBuiltIsEnabled() {
UiProjectDescriptor _uiProject = this.config.getUiProject();
_uiProject.setEnabled(true);
IdeProjectDescriptor _ideProject = this.config.getIdeProject();
_ideProject.setEnabled(true);
this.config.setPreferredBuildSystem(BuildSystem.MAVEN);
Assert.assertTrue(this.config.needsTychoBuild());
RuntimeProjectDescriptor _runtimeProject = this.config.getRuntimeProject();
IdeProjectDescriptor _ideProject_1 = this.config.getIdeProject();
UiProjectDescriptor _uiProject_1 = this.config.getUiProject();
final Consumer<ProjectDescriptor> _function = (ProjectDescriptor it) -> {
Assert.assertTrue(it.pom().getContent().contains("eclipse-plugin"));
};
Collections.<ProjectDescriptor>unmodifiableList(CollectionLiterals.<ProjectDescriptor>newArrayList(_runtimeProject, _ideProject_1, _uiProject_1)).forEach(_function);
Assert.assertTrue(this.config.getParentProject().pom().getContent().contains("tycho"));
}
use of org.eclipse.xtext.xtext.wizard.RuntimeProjectDescriptor in project xtext-core by eclipse.
the class WizardConfigurationTest method allJavaProjects.
public List<? extends ProjectDescriptor> allJavaProjects() {
RuntimeProjectDescriptor _runtimeProject = this.config.getRuntimeProject();
TestProjectDescriptor _testProject = this.config.getRuntimeProject().getTestProject();
UiProjectDescriptor _uiProject = this.config.getUiProject();
TestProjectDescriptor _testProject_1 = this.config.getUiProject().getTestProject();
IdeProjectDescriptor _ideProject = this.config.getIdeProject();
IntellijProjectDescriptor _intellijProject = this.config.getIntellijProject();
WebProjectDescriptor _webProject = this.config.getWebProject();
return Collections.<ProjectDescriptor>unmodifiableList(CollectionLiterals.<ProjectDescriptor>newArrayList(_runtimeProject, _testProject, _uiProject, _testProject_1, _ideProject, _intellijProject, _webProject));
}
use of org.eclipse.xtext.xtext.wizard.RuntimeProjectDescriptor in project xtext-core by eclipse.
the class UiProjectDescriptor method getUpstreamProjects.
@Override
public Set<? extends ProjectDescriptor> getUpstreamProjects() {
RuntimeProjectDescriptor _runtimeProject = this.getConfig().getRuntimeProject();
IdeProjectDescriptor _ideProject = this.getConfig().getIdeProject();
final Function1<ProjectDescriptor, Boolean> _function = (ProjectDescriptor it) -> {
return Boolean.valueOf(it.isEnabled());
};
return IterableExtensions.toSet(IterableExtensions.filter(Collections.<ProjectDescriptor>unmodifiableList(CollectionLiterals.<ProjectDescriptor>newArrayList(_runtimeProject, _ideProject)), _function));
}
Aggregations