Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2011-11-21 22:01:59 +0000
committerJeff Johnston2011-11-21 22:01:59 +0000
commitab2787876eccf8110383982d70cbc08af7ed8d5d (patch)
tree673ebe474502665b818b78685e9a6d87ba25874d
parent1916f459c37a5e8994f029beddfdf256278f0fc3 (diff)
downloadorg.eclipse.linuxtools-ab2787876eccf8110383982d70cbc08af7ed8d5d.tar.gz
org.eclipse.linuxtools-ab2787876eccf8110383982d70cbc08af7ed8d5d.tar.xz
org.eclipse.linuxtools-ab2787876eccf8110383982d70cbc08af7ed8d5d.zip
Fix getOS call for RDTProxyManager.
* src/org/eclipse/linuxtools/rdt/proxy/RDTProxyManager.java (getOS): Hard-code to "Linux" for the mean-time until we figure out a more consistent way to get a correct result.
-rw-r--r--profiling/org.eclipse.linuxtools.rdt.proxy/ChangeLog6
-rw-r--r--profiling/org.eclipse.linuxtools.rdt.proxy/src/org/eclipse/linuxtools/rdt/proxy/RDTProxyManager.java14
2 files changed, 11 insertions, 9 deletions
diff --git a/profiling/org.eclipse.linuxtools.rdt.proxy/ChangeLog b/profiling/org.eclipse.linuxtools.rdt.proxy/ChangeLog
index 84984588a0..1730fffced 100644
--- a/profiling/org.eclipse.linuxtools.rdt.proxy/ChangeLog
+++ b/profiling/org.eclipse.linuxtools.rdt.proxy/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-21 Jeff Johnston <jjohnstn@redhat.com>
+
+ * src/org/eclipse/linuxtools/rdt/proxy/RDTProxyManager.java (getOS): Hard-code
+ to "Linux" for the mean-time until we figure out a more consistent way to get
+ a correct result.
+
2011-11-15 Jeff Johnston <jjohnstn@redhat.com>
* plugin.xml: Fix schema specifier for RDT to be remotetools.
diff --git a/profiling/org.eclipse.linuxtools.rdt.proxy/src/org/eclipse/linuxtools/rdt/proxy/RDTProxyManager.java b/profiling/org.eclipse.linuxtools.rdt.proxy/src/org/eclipse/linuxtools/rdt/proxy/RDTProxyManager.java
index 165c5b1fcb..89b8347835 100644
--- a/profiling/org.eclipse.linuxtools.rdt.proxy/src/org/eclipse/linuxtools/rdt/proxy/RDTProxyManager.java
+++ b/profiling/org.eclipse.linuxtools.rdt.proxy/src/org/eclipse/linuxtools/rdt/proxy/RDTProxyManager.java
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.linuxtools.rdt.proxy;
-import java.net.URI;
-
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.linuxtools.internal.rdt.proxy.RDTCommandLauncher;
@@ -19,9 +17,6 @@ import org.eclipse.linuxtools.internal.rdt.proxy.RDTFileProxy;
import org.eclipse.linuxtools.profiling.launch.IRemoteCommandLauncher;
import org.eclipse.linuxtools.profiling.launch.IRemoteFileProxy;
import org.eclipse.linuxtools.profiling.launch.IRemoteProxyManager;
-import org.eclipse.ptp.remote.core.IRemoteConnection;
-import org.eclipse.ptp.remote.core.IRemoteServices;
-import org.eclipse.ptp.remote.core.PTPRemoteCorePlugin;
public class RDTProxyManager implements IRemoteProxyManager {
@@ -39,10 +34,11 @@ public class RDTProxyManager implements IRemoteProxyManager {
@Override
public String getOS(IProject project) throws CoreException {
// TODO Auto-generated method stub
- URI uri = project.getLocationURI();
- IRemoteServices services = PTPRemoteCorePlugin.getDefault().getRemoteServices(uri);
- IRemoteConnection connection = services.getConnectionManager().getConnection(uri);
- return connection.getProperty(IRemoteConnection.OS_NAME_PROPERTY);
+// URI uri = project.getLocationURI();
+// IRemoteServices services = PTPRemoteCorePlugin.getDefault().getRemoteServices(uri);
+// IRemoteConnection connection = services.getConnectionManager().getConnection(uri);
+// return connection.getProperty(IRemoteConnection.OS_NAME_PROPERTY);
+ return "Linux"; //FIXME: why doesn't getProperty() work?
}
}

Back to the top