Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/nattable')
-rwxr-xr-xplugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java
index d5499a2f963..52648dce925 100755
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java
@@ -152,7 +152,11 @@ public abstract class AbstractSynchronizedOnEStructuralFeatureAxisManager extend
if (!toAdd.isEmpty() || !toRemove.isEmpty()) {
List<Object> newValue = new ArrayList<Object>(this.managedObject);
newValue.removeAll(toRemove);
- newValue.addAll(toAdd);
+ for(final Object objectToAdd: toAdd){
+ if(!newValue.contains(objectToAdd)){
+ newValue.add(objectToAdd);
+ }
+ }
if (toAdd.size() > 0) {
newValue = organizeContents(newValue);
}

Back to the top