Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2014-02-05 05:31:45 -0500
committervlorenzo2014-02-05 05:31:45 -0500
commit820b57897582e51aed3ebbe4bf350e6f0602b688 (patch)
tree3bf4c1398f4229cdba9120aa4438ae152c94ca40 /plugins
parent1b2ce2f96bd08c8371407c2821fd1100a5da9045 (diff)
downloadorg.eclipse.papyrus-820b57897582e51aed3ebbe4bf350e6f0602b688.tar.gz
org.eclipse.papyrus-820b57897582e51aed3ebbe4bf350e6f0602b688.tar.xz
org.eclipse.papyrus-820b57897582e51aed3ebbe4bf350e6f0602b688.zip
Fix 2 bugs found thanl tests :
- Fix the papyrus class EditorContextSynchronizerAxisManager - Fix the JUnit test testCreationAndDestructionOnRequirement
Diffstat (limited to 'plugins')
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.config/src/org/eclipse/papyrus/infra/nattable/views/config/manager/axis/EditorContextSynchronizerAxisManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.config/src/org/eclipse/papyrus/infra/nattable/views/config/manager/axis/EditorContextSynchronizerAxisManager.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.config/src/org/eclipse/papyrus/infra/nattable/views/config/manager/axis/EditorContextSynchronizerAxisManager.java
index 36f3c34f008..ab2952144d6 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.config/src/org/eclipse/papyrus/infra/nattable/views/config/manager/axis/EditorContextSynchronizerAxisManager.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.config/src/org/eclipse/papyrus/infra/nattable/views/config/manager/axis/EditorContextSynchronizerAxisManager.java
@@ -229,7 +229,7 @@ public class EditorContextSynchronizerAxisManager extends AbstractSynchronizedOn
case Notification.REMOVE:
Object oldValue = notification.getOldValue();
if(oldValue instanceof PageRef) {
- newValue = ((PageRef)oldValue).getPageIdentifier();
+ oldValue = ((PageRef)oldValue).getPageIdentifier();
}
if(this.managedObject.contains(oldValue)) {
toRemove.add(oldValue);
@@ -239,9 +239,9 @@ public class EditorContextSynchronizerAxisManager extends AbstractSynchronizedOn
Collection<?> oldValues = (Collection<?>)notification.getOldValue();
for(Object current : oldValues) {
if(current instanceof PageRef) {
- newValue = ((PageRef)current).getPageIdentifier();
+ current = ((PageRef)current).getPageIdentifier();
}
- if(this.managedObject.contains(oldValues)) {
+ if(this.managedObject.contains(current)) {
toRemove.add(current);
}
}

Back to the top