Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2017-01-11 16:22:01 +0000
committerGerrit Code Review @ Eclipse.org2017-01-26 12:47:52 +0000
commit7656d60675284f0a10e5f462917bd7f255ac00ec (patch)
treec1eac5f6317d623d0178007b5f8c16b261d2a875 /plugins/infra/nattable
parentd8ef7b72524b7d0b2cd2b2c4345c2dd976e2b665 (diff)
downloadorg.eclipse.papyrus-7656d60675284f0a10e5f462917bd7f255ac00ec.tar.gz
org.eclipse.papyrus-7656d60675284f0a10e5f462917bd7f255ac00ec.tar.xz
org.eclipse.papyrus-7656d60675284f0a10e5f462917bd7f255ac00ec.zip
Bug 487932: [Table] SysML 1.1 Junit tests must be moved to UML NatTable
plugins https://bugs.eclipse.org/bugs/show_bug.cgi?id=487932 Create an UML plugin with dynamic profile to reproduce the SysML allocations and requirements tests without SysML profile. Change-Id: I9cc6acca78c94f60e505d4c603cedf0dae0f2a70 Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
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