Merge "Bug 553845 - [Robotics] Provide ROS2 test examples"
diff --git a/plugins/customization/org.eclipse.papyrus.robotics.wizards/src/org/eclipse/papyrus/robotics/wizards/wizards/NewRoboticsProjectWizard.java b/plugins/customization/org.eclipse.papyrus.robotics.wizards/src/org/eclipse/papyrus/robotics/wizards/wizards/NewRoboticsProjectWizard.java
index 4f08107..f892c2b 100644
--- a/plugins/customization/org.eclipse.papyrus.robotics.wizards/src/org/eclipse/papyrus/robotics/wizards/wizards/NewRoboticsProjectWizard.java
+++ b/plugins/customization/org.eclipse.papyrus.robotics.wizards/src/org/eclipse/papyrus/robotics/wizards/wizards/NewRoboticsProjectWizard.java
@@ -56,6 +56,8 @@
private static final String COMPONENTS = "components"; //$NON-NLS-1$
+ private static final String TASKBASEDHARA = "taskbased-hara"; //$NON-NLS-1$
+
/** The Constant WIZARD_ID. */
public static final String WIZARD_ID = "org.eclipse.papyrus.robotics.wizards.createproject"; //$NON-NLS-1$
@@ -160,6 +162,8 @@
skills.create(true, true, null);
IFolder btrees = models.getFolder(TASKS);
btrees.create(true, true, null);
+ IFolder taskbasedhara = models.getFolder(TASKBASEDHARA);
+ taskbasedhara.create(true, true, null);
} else {
// projectDescription = project.getDescription();
project.open(new SubProgressMonitor(progressMonitor, 1));
@@ -184,6 +188,8 @@
folder = SKILLS;
} else if (id.endsWith(WizardConstants.BEHAVIOR_TREE_VIEWPOINT)) {
folder = TASKS;
+ } else if (id.endsWith(WizardConstants.TASKBASED_HARA_VIEWPOINT)) {
+ folder = TASKBASEDHARA;
}
IPath newFilePath = getMyProjectPage().getProjectHandle().getFullPath().append(MODELS + SLASH + folder + SLASH + getMyProjectPage().getFileName() + DOT + extension);
return URI.createPlatformResourceURI(newFilePath.toString(), true);