Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2011-10-11 22:40:49 +0000
committerJeff Johnston2011-10-11 22:40:49 +0000
commitb95529539413998e56a1e87315ee0e8746d01a9a (patch)
treefcd9c2a457ac441079b6356f5daaf3078e5f718f
parent356a1d41b6140c15e41cd7b64bfe9a1997521fdb (diff)
downloadorg.eclipse.linuxtools-b95529539413998e56a1e87315ee0e8746d01a9a.tar.gz
org.eclipse.linuxtools-b95529539413998e56a1e87315ee0e8746d01a9a.tar.xz
org.eclipse.linuxtools-b95529539413998e56a1e87315ee0e8746d01a9a.zip
Add RDT sync project support to RemoteProxyManager.
* src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java (getLauncher): Add missing logic for RDT projects. (getOS): Ditto. (RDT_SYNC_NATURE): New nature to look for. (getFileProxy): Add support for RDT_SYNC_NATURE.
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java b/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java
index e4c7333c82..bd5eacee11 100644
--- a/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java
+++ b/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyManager.java
@@ -25,7 +25,8 @@ import org.eclipse.linuxtools.internal.profiling.launch.ProfileLaunchPlugin;
public class RemoteProxyManager implements IRemoteProxyManager {
public final static String RDT_NATURE = "org.eclipse.ptp.rdt.core.remoteNature"; //$NON-NLS-1$
-
+ public final static String RDT_SYNC_NATURE = "org.eclipse.ptp.rdt.sync.core.remoteSyncNature"; //$NON-NLS-1$
+
private static final String EXT_ATTR_CLASS = "class"; //$NON-NLS-1$
private static RemoteProxyManager manager;
@@ -73,14 +74,24 @@ public class RemoteProxyManager implements IRemoteProxyManager {
public IRemoteFileProxy getFileProxy(IProject project) throws CoreException {
if (project.hasNature(RDT_NATURE))
return getRemoteManager(RDT_NATURE).getFileProxy(project);
+ else if (project.hasNature(RDT_SYNC_NATURE))
+ return getRemoteManager(RDT_SYNC_NATURE).getFileProxy(project);
return getLocalFileProxy();
}
public IRemoteCommandLauncher getLauncher(IProject project) throws CoreException {
+ if (project.hasNature(RDT_NATURE))
+ return getRemoteManager(RDT_NATURE).getLauncher(project);
+ else if (project.hasNature(RDT_SYNC_NATURE))
+ return getRemoteManager(RDT_SYNC_NATURE).getLauncher(project);
return new LocalLauncher();
}
public String getOS(IProject project) throws CoreException {
+ if (project.hasNature(RDT_NATURE))
+ return getRemoteManager(RDT_NATURE).getOS(project);
+ else if (project.hasNature(RDT_SYNC_NATURE))
+ return getRemoteManager(RDT_SYNC_NATURE).getOS(project);
return Platform.getOS();
}
}

Back to the top