Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-08-24 07:44:21 -0400
committercletavernie2012-08-24 07:44:21 -0400
commit726cfa48d9c2d607268a05a40ac8ea7490a26a80 (patch)
tree0969a61608e350fd87289d90b4501a04401ba76d /plugins/infra
parent953270b22d01703876c2cdf2f1b4fb9f40cfa777 (diff)
downloadorg.eclipse.papyrus-726cfa48d9c2d607268a05a40ac8ea7490a26a80.tar.gz
org.eclipse.papyrus-726cfa48d9c2d607268a05a40ac8ea7490a26a80.tar.xz
org.eclipse.papyrus-726cfa48d9c2d607268a05a40ac8ea7490a26a80.zip
387975: [CommandStack] Wrong event source when notifying CommandStack listeners
https://bugs.eclipse.org/bugs/show_bug.cgi?id=387975
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands/src/org/eclipse/papyrus/commands/NotifyingWorkspaceCommandStack.java6
1 files changed, 3 insertions, 3 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 2b66d1e702e..5e14334cf3a 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
@@ -130,7 +130,7 @@ implements IWorkspaceCommandStack {
// emf stack only needs to be notified when an operation is
// finished
if(OperationHistoryEvent.DONE == type || OperationHistoryEvent.REDONE == type || OperationHistoryEvent.UNDONE == type) {
- listener.commandStackChanged(new EventObject(this));
+ listener.commandStackChanged(new EventObject(NotifyingWorkspaceCommandStack.this));
}
}
};
@@ -435,10 +435,10 @@ implements IWorkspaceCommandStack {
domainListener = null;
historyAffectedResources = null;
mostRecentOperation = null;
-
+
// remove listeners registered in opertationHistory
Collection<IOperationHistoryListener> values = proxyOperationListeners.values();
- for( IOperationHistoryListener proxy : values ) {
+ for(IOperationHistoryListener proxy : values) {
getOperationHistory().removeOperationHistoryListener(proxy);
}
proxyOperationListeners.clear();

Back to the top