Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-09-21 07:54:51 -0400
committerUwe Stieber2012-09-21 07:54:51 -0400
commiteb7c913f69ce1e99bca24117d1e71d547309ff41 (patch)
treecc2d1d0b669fb7b10e09b703b3758a1069ca5961 /target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core
parent60b715a4f3d12d9ba6bb99fd93b7d20ce3b78be0 (diff)
downloadorg.eclipse.tcf-eb7c913f69ce1e99bca24117d1e71d547309ff41.tar.gz
org.eclipse.tcf-eb7c913f69ce1e99bca24117d1e71d547309ff41.tar.xz
org.eclipse.tcf-eb7c913f69ce1e99bca24117d1e71d547309ff41.zip
Target Explorer: Improve adaptable matching and selectionChanged handling on refresh of the System Manager tree
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/nodes/ProcessContextNode.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/nodes/ProcessContextNode.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/nodes/ProcessContextNode.java
index a30e35aef..97937c75f 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/nodes/ProcessContextNode.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/nodes/ProcessContextNode.java
@@ -218,21 +218,21 @@ public class ProcessContextNode extends ContainerModelNode implements IProcessCo
protected Object doGetAdapter(Class<?> adapter) {
Assert.isTrue(checkThreadAccess(), "Illegal Thread Access"); //$NON-NLS-1$
- if (IProcesses.ProcessContext.class.equals(adapter)) {
+ if (IProcesses.ProcessContext.class.isAssignableFrom(adapter)) {
return pContext;
}
- if (ISysMonitor.SysMonitorContext.class.equals(adapter)) {
+ if (ISysMonitor.SysMonitorContext.class.isAssignableFrom(adapter)) {
return sContext;
}
- if (IPeerModelProvider.class.equals(adapter)) {
+ if (IPeerModelProvider.class.isAssignableFrom(adapter)) {
IModel model = getParent(IModel.class);
if (model instanceof IPeerModelProvider) return model;
}
- if (IPeerModel.class.equals(adapter)) {
+ if (IPeerModel.class.isAssignableFrom(adapter)) {
IModel model = getParent(IModel.class);
if (model instanceof IPeerModelProvider) return ((IPeerModelProvider)model).getPeerModel();
}
- if (IAsyncRefreshableCtx.class.equals(adapter)) {
+ if (IAsyncRefreshableCtx.class.isAssignableFrom(adapter)) {
return refreshableCtxAdapter;
}

Back to the top