Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] What id to use in RemoteServices.getRemoteServices()?

> I am using the Kepler nightly build and trying to programmatically create a
> remote connection using the RemoteServices class. The getRemoteServices()
> operation requests an id, but the documentation is a little sparse about
> what that id is. Is this an IP address, just a tag that will be used to
> identify the instance of the services created or is it something else?

It is the ID of any extension that contributes to the extension point

org.eclipse.ptp.remote.core.remoteServices

Looking through the PTP code, there is :

org.eclipse.ptp.remote.LocalServices
org.eclipse.ptp.remote.RSERemoteServices
org.eclipse.ptp.remote.RemoteTools

I guess it's up to you to decide which implementation is needed.
Alternatively you could pass a URI of the resource to decide that
way.

Cheers,
-- 
Roland Grunberg


Back to the top