Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraradermache2013-06-10 09:16:31 +0000
committeraradermache2013-06-10 09:16:31 +0000
commit5e1f67ae0edab8dae1e2612eec8130edde12adfc (patch)
tree7eda998f780311ea8ee48315f31fb6dc9dedbec1 /plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse
parente658fbb5ca4138be8ab6852b6cb54a2cdedf8602 (diff)
downloadorg.eclipse.papyrus-5e1f67ae0edab8dae1e2612eec8130edde12adfc.tar.gz
org.eclipse.papyrus-5e1f67ae0edab8dae1e2612eec8130edde12adfc.tar.xz
org.eclipse.papyrus-5e1f67ae0edab8dae1e2612eec8130edde12adfc.zip
Bug 410310 - [core] Model remains dirty after save
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse/papyrus/commands/NotifyingWorkspaceCommandStack.java9
1 files changed, 9 insertions, 0 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 42347076cd8..71779811ed0 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
@@ -607,16 +607,25 @@ implements IWorkspaceCommandStack {
// pass
}
+
@Override
public boolean isSaveNeeded() {
+ // Bug 410310 - [core] Model remains dirty after save
+ // seems that super class implementation is good enough
+ // => deactivate implementation below and use the standard from the superclass
+ return super.isSaveNeeded();
// We override the execute method and never call the super
// implementation
// so we have to implement the isSaveNeeded method ourselves.
+ /*
IUndoableOperation nextUndoableOperation = history.getUndoOperation(getDefaultUndoContext());
if(nextUndoableOperation == null) {
+ // this is the last undoable operation. But the document might have been save
+ // CAVEAT: will trigger 410310, if the model has been saved before
return savedContext != null;
}
return savedContext != null ? !nextUndoableOperation.hasContext(getSavedContext()) : true;
+ */
}
@Override

Back to the top