org.eclipse.xtext.ui.wizard.IProjectInfo Java Examples
The following examples show how to use
org.eclipse.xtext.ui.wizard.IProjectInfo.
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: N4JSProjectCreator.java From n4js with Eclipse Public License 1.0 | 5 votes |
@Override public void setProjectInfo(IProjectInfo projectInfo) { super.setProjectInfo(projectInfo); if (projectInfo instanceof N4JSProjectInfo && ProjectType.TEST.equals(((N4JSProjectInfo) projectInfo).getProjectType())) { configureTestProject((N4JSProjectInfo) projectInfo); } }
Example #2
Source File: N4JSNewProjectWizard.java From n4js with Eclipse Public License 1.0 | 5 votes |
@Override protected IProjectInfo getProjectInfo() { // update workingsets: newProjectWizardCreationPage.updateSelectedWorkingSets(); return projectInfo; }
Example #3
Source File: NewXtextProjectFromEcoreWizard.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override protected IProjectInfo getProjectInfo() { XtextProjectInfo projectInfo = (XtextProjectInfo) super.getProjectInfo(); RuntimeProjectDescriptor runtimeProjectDescriptor = projectInfo.getRuntimeProject(); runtimeProjectDescriptor.setWithPluginXml(false); Ecore2XtextConfiguration ecore2Xtext = projectInfo.getEcore2Xtext(); ecore2Xtext.getEPackageInfos().addAll(ePackageSelectionPage.getEPackageInfos()); ecore2Xtext.setRootElementClass(ePackageSelectionPage.getRootElementClass()); ecore2Xtext.setDefaultEPackageInfo(ePackageSelectionPage.getDefaultEPackageInfo()); return projectInfo; }
Example #4
Source File: NewCheckProjectWizard.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * Get the project info instance from the new file page. It contains all information except for the project name. * * @return the project info instance */ @Override protected IProjectInfo getProjectInfo() { CheckProjectInfo projectInfo = newCatalogPage.getProjectInfo(); projectInfo.setProjectName(newProjectPage.getProjectName()); // the project name is only required by the project creator; in case of the new file wizard, // the project name is neither available nor needed if (projectInfo.getPackageName().trim().length() == 0) { // If no package name was provided, set the project name as package name // Should not happen as package name is mandatory projectInfo.setPackageName(projectInfo.getProjectName()); } return projectInfo; }
Example #5
Source File: NewCheckCatalogWizard.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * Get the project info instance from the new file page. It contains all information except for the project name. * * @return the project info instance */ @Override public IProjectInfo getProjectInfo() { CheckProjectInfo projectInfo = new CheckProjectInfo(); projectInfo = catalogPage.getProjectInfo(); return projectInfo; }
Example #6
Source File: XtextProjectCreator.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void setProjectInfo(IProjectInfo projectInfo) { this.projectInfo = (XtextProjectInfo) projectInfo; }
Example #7
Source File: NewXtextProjectWizard.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override protected IProjectInfo getProjectInfo() { XtextProjectInfo projectInfo = createProjectInfo(); LanguageDescriptor language = projectInfo.getLanguage(); language.setFileExtensions(FileExtensions.fromString(mainPage.getFileExtensions())); language.setName(mainPage.getLanguageName()); projectInfo.setBaseName(mainPage.getProjectName()); projectInfo.setWorkingSets(Arrays.asList(mainPage.getSelectedWorkingSets())); projectInfo.setRootLocation(mainPage.getLocationPath().toString()); Charset encoding = null; try { encoding = Charset.forName(ResourcesPlugin.getWorkspace().getRoot().getDefaultCharset()); } catch (final CoreException e) { encoding = Charset.defaultCharset(); } projectInfo.setEncoding(encoding); String lineDelimiter = InstanceScope.INSTANCE.getNode("org.eclipse.core.runtime").get("line.separator", Strings.newLine()); projectInfo.setLineDelimiter(lineDelimiter); projectInfo.setWorkbench(getWorkbench()); JavaVersion selectedBree = mainPage.getJavaVersion(); // Use old default for wizard as fall back, when something goes wrong if (selectedBree != null) { projectInfo.setJavaVersion(selectedBree); } BuildSystem buildSystem = advancedPage.getPreferredBuildSystem(); projectInfo.setPreferredBuildSystem(buildSystem); projectInfo.setSourceLayout(advancedPage.getSourceLayout()); projectInfo.getUiProject().setEnabled(advancedPage.isCreateUiProject()); if (buildSystem != BuildSystem.NONE) { projectInfo.setProjectLayout(ProjectLayout.HIERARCHICAL); } projectInfo.getIdeProject().setEnabled(advancedPage.isCreateIdeProject()); projectInfo.getWebProject().setEnabled(advancedPage.isCreateWebProject()); projectInfo.getSdkProject().setEnabled(advancedPage.isCreateSdkProject()); projectInfo.getP2Project().setEnabled(advancedPage.isCreateP2Project()); projectInfo.setLanguageServer(advancedPage.getLanguageServer()); projectInfo.setJunitVersion(advancedPage.getSelectedJUnitVersion()); if (advancedPage.isCreateTestProject()) { for (ProjectDescriptor project : projectInfo.getEnabledProjects()) { if (project instanceof TestedProjectDescriptor) { ((TestedProjectDescriptor) project).getTestProject().setEnabled(true); } } } return projectInfo; }
Example #8
Source File: DefaultTemplateProjectCreator.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void setProjectInfo(IProjectInfo projectInfo) { this.projectInfo = projectInfo; }
Example #9
Source File: DefaultTemplateProjectCreator.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected IProjectInfo getProjectInfo() { return projectInfo; }
Example #10
Source File: CheckCatalogCreator.java From dsl-devkit with Eclipse Public License 1.0 | 4 votes |
/** {@inheritDoc} */ public void setProjectInfo(final IProjectInfo projectInfo) { this.projectInfo = (CheckProjectInfo) projectInfo; }