Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraradermache2013-06-11 07:53:17 +0000
committeraradermache2013-06-11 07:53:17 +0000
commit13b38c153fb513504e0f36165c345f961efed67c (patch)
tree1006a563cd892a77042887f3acf97959959f4051
parentc24fe66314823b10a41f3eaeedd0618d724f3b14 (diff)
downloadorg.eclipse.papyrus-13b38c153fb513504e0f36165c345f961efed67c.tar.gz
org.eclipse.papyrus-13b38c153fb513504e0f36165c345f961efed67c.tar.xz
org.eclipse.papyrus-13b38c153fb513504e0f36165c345f961efed67c.zip
Bug 410310 - [core] Model remains dirty after save (amended)
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse/papyrus/commands/NotifyingWorkspaceCommandStack.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse/papyrus/commands/NotifyingWorkspaceCommandStack.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse/papyrus/commands/NotifyingWorkspaceCommandStack.java
index 71779811ed0..2a404335c0e 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse/papyrus/commands/NotifyingWorkspaceCommandStack.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse/papyrus/commands/NotifyingWorkspaceCommandStack.java
@@ -610,8 +610,7 @@ implements IWorkspaceCommandStack {
@Override
public boolean isSaveNeeded() {
- // Bug 410310 - [core] Model remains dirty after save
- // seems that super class implementation is good enough
+ // We do not override the execute method any more, this implies that we can use the super class method
// => deactivate implementation below and use the standard from the superclass
return super.isSaveNeeded();
// We override the execute method and never call the super
@@ -630,6 +629,10 @@ implements IWorkspaceCommandStack {
@Override
public void saveIsDone() {
+ // We do not override the execute method any more, this implies that we can use the super class method
+ // => deactivate implementation below and use the standard from the superclass
+ super.saveIsDone();
+ /*
// We override the execute method and never call the super
// implementation
// so we have to implement the saveIsDone method ourselves.
@@ -651,5 +654,6 @@ implements IWorkspaceCommandStack {
return;
}
nextUndoableOperation.addContext(getSavedContext());
+ */
}
}

Back to the top