diff options
author | jeremie.tatibouet | 2015-05-20 20:05:25 +0000 |
---|---|---|
committer | Arnaud Cuccuru | 2015-05-21 11:39:16 +0000 |
commit | b744b51598da15e837e2f1d14e571fad87bf5a8b (patch) | |
tree | 7d03971818b2a734f6a492457cafe90cbdaf4ef9 /extraplugins/alf/ui | |
parent | f628ad8100f301f40b84412df377365e071a36a4 (diff) | |
download | org.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.java | 5 |
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());
}
}
}
|