diff options
author | Jeff Johnston | 2011-11-21 22:01:59 +0000 |
---|---|---|
committer | Jeff Johnston | 2011-11-21 22:01:59 +0000 |
commit | ab2787876eccf8110383982d70cbc08af7ed8d5d (patch) | |
tree | 673ebe474502665b818b78685e9a6d87ba25874d | |
parent | 1916f459c37a5e8994f029beddfdf256278f0fc3 (diff) | |
download | org.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/ChangeLog | 6 | ||||
-rw-r--r-- | profiling/org.eclipse.linuxtools.rdt.proxy/src/org/eclipse/linuxtools/rdt/proxy/RDTProxyManager.java | 14 |
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? } } |