summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-26 05:00:00 (EDT)
committerEike Stepper2007-09-26 05:00:00 (EDT)
commit0fe8e458d80f162bef21e961ec027ba94f36f8da (patch)
treec8198679ad4f0b12fc95b379cc47f59cec330778
parentf996cbab950c3a988516e7eadae2a056331216d7 (diff)
downloadcdo-0fe8e458d80f162bef21e961ec027ba94f36f8da.zip
cdo-0fe8e458d80f162bef21e961ec027ba94f36f8da.tar.gz
cdo-0fe8e458d80f162bef21e961ec027ba94f36f8da.tar.bz2
[204545] Net4j Connectors view shows duplicate channels
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204545
-rw-r--r--plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerItemProvider.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerItemProvider.java b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerItemProvider.java
index 94d5f67..321fa32 100644
--- a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerItemProvider.java
+++ b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerItemProvider.java
@@ -336,6 +336,11 @@ public class ContainerItemProvider<CONTAINER extends IContainer<Object>> extends
protected Node addChild(List<Node> children, Object element)
{
+ if (nodes.containsKey(element))
+ {
+ return null;
+ }
+
if (this != root || filterRootElement(element))
{
Node node = createNode(this, element);