Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-09-10 06:52:20 +0000
committerUwe Stieber2013-09-10 06:52:46 +0000
commit940397d1883a5116d4f12341e0c32c5d8643e93c (patch)
tree503f60a724466e8d3e0aaa3bc91bfa85d54dab27 /target_explorer
parent60867a217182a78def06d9cdd80aa0db22cf96ed (diff)
downloadorg.eclipse.tcf-940397d1883a5116d4f12341e0c32c5d8643e93c.tar.gz
org.eclipse.tcf-940397d1883a5116d4f12341e0c32c5d8643e93c.tar.xz
org.eclipse.tcf-940397d1883a5116d4f12341e0c32c5d8643e93c.zip
Target Explorer: Don't show CLI client or server peers in Neighborhood
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java
index ea6dd2791..da4f638a9 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/ScannerRunnable.java
@@ -413,7 +413,14 @@ public class ScannerRunnable implements Runnable, IChannel.IChannelListener {
String value = attributes.get("ValueAdd"); //$NON-NLS-1$
boolean isValueAdd = value != null && ("1".equals(value.trim()) || Boolean.parseBoolean(value.trim())); //$NON-NLS-1$
- if (isValueAdd) continue;
+ // Don't process CLI service or clients
+ String name = attributes.get(IPeer.ATTR_NAME);
+ boolean isCLI = name != null
+ && (name.startsWith("Eclipse CLI") //$NON-NLS-1$
+ || name.endsWith("CLI Server") //$NON-NLS-1$
+ || name.endsWith("CLI Client")); //$NON-NLS-1$
+
+ if (isValueAdd || isCLI) continue;
// Get the peer id
String peerId = attributes.get(IPeer.ATTR_ID);

Back to the top