Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeremie.tatibouet2015-05-20 16:05:25 -0400
committerArnaud Cuccuru2015-05-21 07:39:16 -0400
commitb744b51598da15e837e2f1d14e571fad87bf5a8b (patch)
tree7d03971818b2a734f6a492457cafe90cbdaf4ef9 /extraplugins/alf/ui
parentf628ad8100f301f40b84412df377365e071a36a4 (diff)
downloadorg.eclipse.papyrus-b744b51598da15e837e2f1d14e571fad87bf5a8b.tar.gz
org.eclipse.papyrus-b744b51598da15e837e2f1d14e571fad87bf5a8b.tar.xz
org.eclipse.papyrus-b744b51598da15e837e2f1d14e571fad87bf5a8b.zip
Fix incorrect refresh of the ALF editor a compilation.
Fix unecessary creation of textual representation comments. Fix automated population of error log with debug messages Change-Id: If5d01a83c90935a848377bf5f0ea8654a32526a5 Signed-off-by: jeremie.tatibouet <jeremie.tatibouet@cea.fr> Reviewed-on: https://git.eclipse.org/r/48342 Tested-by: Hudson CI Reviewed-by: Arnaud Cuccuru <arnaud.cuccuru@cea.fr> Tested-by: Arnaud Cuccuru <arnaud.cuccuru@cea.fr>
Diffstat (limited to 'extraplugins/alf/ui')
-rw-r--r--extraplugins/alf/ui/org.eclipse.papyrus.uml.alf.properties.xtext/src/org/eclipse/papyrus/uml/alf/properties/xtext/sheet/ui/listeners/CommitButtonSelectionListener.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/extraplugins/alf/ui/org.eclipse.papyrus.uml.alf.properties.xtext/src/org/eclipse/papyrus/uml/alf/properties/xtext/sheet/ui/listeners/CommitButtonSelectionListener.java b/extraplugins/alf/ui/org.eclipse.papyrus.uml.alf.properties.xtext/src/org/eclipse/papyrus/uml/alf/properties/xtext/sheet/ui/listeners/CommitButtonSelectionListener.java
index 68036f95e6a..5ac73779dfc 100644
--- a/extraplugins/alf/ui/org.eclipse.papyrus.uml.alf.properties.xtext/src/org/eclipse/papyrus/uml/alf/properties/xtext/sheet/ui/listeners/CommitButtonSelectionListener.java
+++ b/extraplugins/alf/ui/org.eclipse.papyrus.uml.alf.properties.xtext/src/org/eclipse/papyrus/uml/alf/properties/xtext/sheet/ui/listeners/CommitButtonSelectionListener.java
@@ -14,6 +14,7 @@
package org.eclipse.papyrus.uml.alf.properties.xtext.sheet.ui.listeners;
+import org.eclipse.papyrus.uml.alf.transaction.commit.CommitScenario;
import org.eclipse.papyrus.uml.alf.transaction.commit.ScenarioFactory;
import org.eclipse.papyrus.uml.alf.properties.xtext.sheet.AlfEditionPropertySection;
import org.eclipse.swt.custom.StyledText;
@@ -40,7 +41,9 @@ public class CommitButtonSelectionListener extends SelectionAdapter {
StyledText editor = this.propertySection.getEditor();
/* 3. Compile without blocking URI */
if (semanticObject != null && editor != null) {
- ScenarioFactory.getInstance().createCommitScenario().execute(semanticObject, editor.getText());
+ CommitScenario commitScenario = (CommitScenario) ScenarioFactory.getInstance().createCommitScenario();
+ commitScenario.bindView(editor);
+ commitScenario.execute(semanticObject, editor.getText());
}
}
}

Back to the top