summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-26 03:57:02 (EDT)
committerEike Stepper2007-09-26 03:57:02 (EDT)
commit5ab58b81b5e1c0078e9b98500b128b5b54978b3b (patch)
tree80e95e283d42e65e68dd9d59dba52a529171e652
parent007f844cadee1edd4d17399ac7f6d9f8ab199453 (diff)
downloadcdo-5ab58b81b5e1c0078e9b98500b128b5b54978b3b.zip
cdo-5ab58b81b5e1c0078e9b98500b128b5b54978b3b.tar.gz
cdo-5ab58b81b5e1c0078e9b98500b128b5b54978b3b.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/ItemProvider.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ItemProvider.java b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ItemProvider.java
index 117cc4c..f14c0ed 100644
--- a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ItemProvider.java
+++ b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ItemProvider.java
@@ -11,6 +11,7 @@
package org.eclipse.net4j.util.ui.views;
import org.eclipse.net4j.util.internal.ui.bundle.OM;
+import org.eclipse.net4j.util.lifecycle.LifecycleUtil;
import org.eclipse.net4j.util.ui.StructuredContentProvider;
import org.eclipse.jface.action.IMenuManager;
@@ -20,6 +21,7 @@ import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.ITreeSelection;
import org.eclipse.jface.viewers.LabelProviderChangedEvent;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.ISharedImages;
@@ -67,6 +69,11 @@ public abstract class ItemProvider<INPUT> extends StructuredContentProvider<INPU
public Color getForeground(Object element)
{
+ if (!LifecycleUtil.isActive(element))
+ {
+ return getDisplay().getSystemColor(SWT.COLOR_GRAY);
+ }
+
return null;
}