Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7cdc7241fb52aed828c9ff6f68cdaaff45bce27e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*******************************************************************************
 * Copyright (c) 2011 Red Hat Inc..
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Red Hat Incorporated - initial API and implementation
 *******************************************************************************/
package org.eclipse.linuxtools.rdt.proxy;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.linuxtools.internal.rdt.proxy.RDTCommandLauncher;
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;

public class RDTProxyManager implements IRemoteProxyManager {

	@Override
	public IRemoteFileProxy getFileProxy(IProject project) throws CoreException {
		return new RDTFileProxy(project);
	}

	@Override
	public IRemoteCommandLauncher getLauncher(IProject project)
			throws CoreException {
		return new RDTCommandLauncher(project);
	}

	@Override
	public String getOS(IProject project) throws CoreException {
//		URI uri = project.getLocationURI();
//		IRemoteServices services = PTPRemoteCorePlugin.getDefault().getRemoteServices(uri);
//		IRemoteConnection connection = services.getConnectionManager().getConnection(uri);
		return "Linux"; //FIXME: why doesn't getProperty("os.name") work?
	}

}

Back to the top