Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2015-04-13 13:57:55 +0000
committerAnsgar Radermacher2015-04-13 14:01:22 +0000
commit825b29dc824862e1ecf9d14a3a2367ba302ee0c9 (patch)
treeac44c15a9479e5079866ffb2b5f633d1f2f80959 /extraplugins/codegen
parentbdb97f8a7fda42c8eb38eb25156ff82758bdd540 (diff)
downloadorg.eclipse.papyrus-825b29dc824862e1ecf9d14a3a2367ba302ee0c9.tar.gz
org.eclipse.papyrus-825b29dc824862e1ecf9d14a3a2367ba302ee0c9.tar.xz
org.eclipse.papyrus-825b29dc824862e1ecf9d14a3a2367ba302ee0c9.zip
464516 - [CDT integration] Changing from code to model triggers a confirmation dialog
Diffstat (limited to 'extraplugins/codegen')
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.texteditor.cdt/src/org/eclipse/papyrus/texteditor/cdt/editor/PapyrusCDTEditor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.texteditor.cdt/src/org/eclipse/papyrus/texteditor/cdt/editor/PapyrusCDTEditor.java b/extraplugins/codegen/org.eclipse.papyrus.texteditor.cdt/src/org/eclipse/papyrus/texteditor/cdt/editor/PapyrusCDTEditor.java
index d5fd254b096..1a8f8971427 100644
--- a/extraplugins/codegen/org.eclipse.papyrus.texteditor.cdt/src/org/eclipse/papyrus/texteditor/cdt/editor/PapyrusCDTEditor.java
+++ b/extraplugins/codegen/org.eclipse.papyrus.texteditor.cdt/src/org/eclipse/papyrus/texteditor/cdt/editor/PapyrusCDTEditor.java
@@ -206,11 +206,11 @@ public class PapyrusCDTEditor extends CEditor {
public void focusLost(FocusEvent e) {
// potential problem for undo/redo!!
if (isDirty()) {
+ doSave(new NullProgressMonitor());
syncCpp.syncCDTtoModel();
Classifier classifier = (Classifier) papyrusTextInstance.getEditedObject();
- doSave(new NullProgressMonitor());
// regenerate code. TODO: raises update dialog
- SyncModelToCDT.syncModelToCDT(classifier);
+ // SyncModelToCDT.syncModelToCDT(classifier);
}
// restore handlers
IActionBars actionBars = getEditorSite().getActionBars();

Back to the top