Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-04-25 00:29:56 -0400
committerTobias Schwarz2014-04-25 00:29:56 -0400
commit81ebf7704bd029d072298228b72356cf5963e9a8 (patch)
tree05241553c443b276979ec46821840101b6b2788e
parent5a050674f8f772056129c1d79b17da86fb45a570 (diff)
downloadorg.eclipse.tcf-81ebf7704bd029d072298228b72356cf5963e9a8.tar.gz
org.eclipse.tcf-81ebf7704bd029d072298228b72356cf5963e9a8.tar.xz
org.eclipse.tcf-81ebf7704bd029d072298228b72356cf5963e9a8.zip
Target Explorer: fix visibility
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerNode.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerNode.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerNode.java
index 114640da4..893e681ac 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerNode.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerNode.java
@@ -312,12 +312,16 @@ public class PeerNode extends ContainerModelNode implements IPeerNode, IPeerNode
boolean visible = peer != null && peer.getAttributes().containsKey(IPeerNodeProperties.PROP_VISIBLE)
? Boolean.valueOf(peer.getAttributes().get(IPeerNodeProperties.PROP_VISIBLE)).booleanValue() : true;
if (visible) {
- IDelegateService service = ServiceManager.getInstance().getService(this, IDelegateService.class);
- if (service != null) {
- IPeerNode.IDelegate delegate = service.getDelegate(this, IPeerNode.IDelegate.class);
- if (delegate != null) {
- return delegate.isVisible(this);
- }
+ IService[] services = ServiceManager.getInstance().getServices(this, IDelegateService.class, false);
+ if (services != null && services.length > 0) {
+ for (IService service : services) {
+ if (service instanceof IDelegateService) {
+ IPeerNode.IDelegate delegate = ((IDelegateService)service).getDelegate(this, IPeerNode.IDelegate.class);
+ if (delegate != null) {
+ return delegate.isVisible(this);
+ }
+ }
+ }
}
}
return visible;

Back to the top