mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Give project generators more control over project descriptors.
This commit is contained in:
parent
93d8073c03
commit
2dcb171369
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ Bundle-Version: 1.0.0.qualifier
|
|||
Bundle-Activator: org.eclipse.tools.templates.freemarker.internal.Activator
|
||||
Require-Bundle: org.eclipse.core.runtime,
|
||||
org.eclipse.core.resources,
|
||||
org.freemarker
|
||||
org.freemarker;visibility:=reexport
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Export-Package: org.eclipse.tools.templates.freemarker
|
||||
|
|
|
@ -25,7 +25,7 @@ public abstract class FMProjectGenerator extends FMGenerator {
|
|||
|
||||
private IProject project;
|
||||
|
||||
protected abstract String[] getProjectNatures();
|
||||
protected abstract void initProjectDescription(IProjectDescription description);
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
|
@ -65,7 +65,7 @@ public abstract class FMProjectGenerator extends FMGenerator {
|
|||
if (referencedProjects != null) {
|
||||
description.setReferencedProjects(referencedProjects);
|
||||
}
|
||||
description.setNatureIds(getProjectNatures());
|
||||
initProjectDescription(description);
|
||||
project.create(description, monitor);
|
||||
project.open(monitor);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue