Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2014-06-25 08:41:25 +0000
committerAnsgar Radermacher2014-06-25 08:43:05 +0000
commited6f3cf2118cc31fa1ce723c8e46277015f03979 (patch)
tree7c647ff537757d872b4f610b1e5b7906f58cf960 /extraplugins/qompass-designer
parent5abd6bc9d22f4141df85414195bb71309d948085 (diff)
downloadorg.eclipse.papyrus-ed6f3cf2118cc31fa1ce723c8e46277015f03979.tar.gz
org.eclipse.papyrus-ed6f3cf2118cc31fa1ce723c8e46277015f03979.tar.xz
org.eclipse.papyrus-ed6f3cf2118cc31fa1ce723c8e46277015f03979.zip
436368 - [C++ codegen] plugin org.eclipse.papyrus.cpp.codegen.tests needs to be moved into tests/junit/extraplugins/codegen - Add CDT feature and better handle cancel
Diffstat (limited to 'extraplugins/qompass-designer')
-rw-r--r--extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/transformations/InstantiateDepPlan.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/transformations/InstantiateDepPlan.java b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/transformations/InstantiateDepPlan.java
index 6a24ca63003..bf3b40d1b22 100644
--- a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/transformations/InstantiateDepPlan.java
+++ b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.core/src/org/eclipse/papyrus/qompass/designer/core/transformations/InstantiateDepPlan.java
@@ -331,7 +331,10 @@ public class InstantiateDepPlan {
ILangSupport langSupport = configureLanguageSupport(mainInstance,
existingModel, node);
-
+ if (langSupport == null) {
+ return;
+ }
+
Deploy deployment = new Deploy(targetCopy, langSupport, node,
nodeIndex, nodes.size());
InstanceSpecification nodeRootIS = deployment
@@ -366,6 +369,14 @@ public class InstantiateDepPlan {
genModelManagement.dispose();
}
+ /**
+ *
+ * @param mainInstance
+ * @param existingModel
+ * @param node
+ * @return null, if no language support is available or no project could be created.
+ * @throws TransformationException
+ */
private ILangSupport configureLanguageSupport(
InstanceSpecification mainInstance, Model existingModel,
InstanceSpecification node) throws TransformationException {
@@ -377,6 +388,9 @@ public class InstantiateDepPlan {
IProject genProject = ProjectManagement.getNamedProject(modelName);
if ((genProject == null) || !genProject.exists()) {
genProject = langSupport.createProject(modelName, getTargetOS(node));
+ if (genProject == null) {
+ return null;
+ }
} else {
langSupport.setProject(genProject);
if ((generationOptions & GenerationOptions.REWRITE_SETTINGS) != 0) {

Back to the top