Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-04-15 12:51:27 +0000
committerTobias Schwarz2014-04-15 12:51:27 +0000
commitf6398aaacbd83059a8ba1553b447b9b85ca681e5 (patch)
tree97fd2349b69a3e328d8c267f90b0e4daf6106bcc /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui
parent40a80b8b7408d584a9e73c67fe79c07a3abf0c4a (diff)
downloadorg.eclipse.tcf-f6398aaacbd83059a8ba1553b447b9b85ca681e5.tar.gz
org.eclipse.tcf-f6398aaacbd83059a8ba1553b447b9b85ca681e5.tar.xz
org.eclipse.tcf-f6398aaacbd83059a8ba1553b447b9b85ca681e5.zip
Target Explorer: extend query service
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/handler/AbstractDiagnosticsCommandHandler.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/handler/AbstractDiagnosticsCommandHandler.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/handler/AbstractDiagnosticsCommandHandler.java
index 8fd221a63..089f320af 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/handler/AbstractDiagnosticsCommandHandler.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/handler/AbstractDiagnosticsCommandHandler.java
@@ -76,9 +76,7 @@ public abstract class AbstractDiagnosticsCommandHandler extends AbstractHandler
final IPeerNode node = (IPeerNode)element;
IPeerModelQueryService service = node.getModel().getService(IPeerModelQueryService.class);
- String remoteServices = service != null ? service.queryRemoteServices(node) : null;
-
- if (remoteServices != null && remoteServices.contains(IDiagnostics.NAME)) {
+ if (service != null && service.hasRemoteService(node, IDiagnostics.NAME)) {
runDiagnostics(node, shell);
}
}

Back to the top