Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2016-06-14 15:38:57 +0000
committerGerrit Code Review @ Eclipse.org2016-06-21 11:13:44 +0000
commitda232baf5ed359e641090de829fee43273d3bf48 (patch)
tree62ca1fac82911b261e40fccd894e09497f2bc660 /plugins
parent7f883ab42bf8285670e342ebcc34b8b1fdeec4bc (diff)
downloadorg.eclipse.papyrus-da232baf5ed359e641090de829fee43273d3bf48.tar.gz
org.eclipse.papyrus-da232baf5ed359e641090de829fee43273d3bf48.tar.xz
org.eclipse.papyrus-da232baf5ed359e641090de829fee43273d3bf48.zip
Bug 495312: [Table 2] Reordering model-elements duplicates them in
hierarchical synced table https://bugs.eclipse.org/bugs/show_bug.cgi?id=495312 The rows duplicated was managed by an add object into the table even if the row of element was already in the table. For the initial order, this is managed as specified in the 'node' attribute of the 'activity' node (and not like sub elements of it (as model explorer did)). Care to your used feature: For activity nodes, this are displayes as ownedElements and as ownedNodes (2 differents attributes). Change-Id: I51c7b593d4cb91b97f71a0110325a731e376a596 Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@all4tec.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/AbstractTreeAxisManagerForEventList.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/AbstractTreeAxisManagerForEventList.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/AbstractTreeAxisManagerForEventList.java
index f08fb40fd8f..23a5a2ce7f6 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/AbstractTreeAxisManagerForEventList.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/AbstractTreeAxisManagerForEventList.java
@@ -704,7 +704,7 @@ public abstract class AbstractTreeAxisManagerForEventList extends AbstractAxisMa
}
// case 3 - the notifier is a known element
- if (this.managedElements.containsKey(notifier)) {
+ if (this.managedElements.containsKey(notifier) && !this.managedElements.containsKey(newValue)) {
final Set<ITreeItemAxis> itemAxisRepresentations = this.managedElements.get(notifier);
// we need to add a child for each representation of its parent in the table
for (final ITreeItemAxis curr : itemAxisRepresentations) {

Back to the top