Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2015-11-06 05:28:39 -0500
committerAnton Leherbauer2015-11-06 05:28:39 -0500
commit843bbfc079402a5c1f35661a3da792239306dba6 (patch)
tree94256130340379ecd20140ff52879e55fdeb1821
parentcd3bdcf3993e36279a08709c6b4058b7602f20b7 (diff)
downloadorg.eclipse.tcf-843bbfc079402a5c1f35661a3da792239306dba6.tar.gz
org.eclipse.tcf-843bbfc079402a5c1f35661a3da792239306dba6.tar.xz
org.eclipse.tcf-843bbfc079402a5c1f35661a3da792239306dba6.zip
Target Explorer: Restore compatibility with Eclipse 3.8.2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
index 3079b0132..71f0d2b5a 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
@@ -1120,32 +1120,34 @@ public class ProcessLauncher extends PlatformObject implements IProcessLauncher
return processesListener;
}
- @SuppressWarnings("unchecked")
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.PlatformObject#getAdapter(java.lang.Class)
+ */
@Override
- public <T> T getAdapter(Class<T> adapter) {
+ public Object getAdapter(Class adapter) {
if (adapter.isAssignableFrom(IProcesses.ProcessesListener.class)) {
- return (T) processesListener;
+ return processesListener;
}
else if (adapter.isAssignableFrom(IStreams.StreamsListener.class)) {
- return (T) streamsListener;
+ return streamsListener;
}
else if (adapter.isAssignableFrom(IStreams.class)) {
- return (T) svcStreams;
+ return svcStreams;
}
else if (adapter.isAssignableFrom(IProcesses.class)) {
- return (T) svcProcesses;
+ return svcProcesses;
}
else if (adapter.isAssignableFrom(IChannel.class)) {
- return (T) channel;
+ return channel;
}
else if (adapter.isAssignableFrom(IPropertiesContainer.class)) {
- return (T) properties;
+ return properties;
}
else if (adapter.isAssignableFrom(IProcesses.ProcessContext.class)) {
- return (T) processContext;
+ return processContext;
}
else if (adapter.isAssignableFrom(this.getClass())) {
- return (T) this;
+ return this;
}

Back to the top