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()?

Ah, I see! It is the ID of the implementation. Great, thanks! I'll try that out.

Jay


On Mon, Apr 29, 2013 at 1:23 PM, Roland Grunberg <rgrunber@xxxxxxxxxx> wrote:
> 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
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev



--
Jay Jay Billings
Oak Ridge National Laboratory
Twitter Handle: @jayjaybillings

Back to the top