Getting remote connection [message #498313] |
Mon, 16 November 2009 07:51  |
Eclipse User |
|
|
|
Hi Everybody,
I have the following challange:
I am using the rse filesystem. Now in my program I am using IFiles. Is
there a way to find out which connection is used to access the real file
(I would like to run a command on the remote host)
Thanks
Martin
|
|
|
Re: Getting remote connection [message #500004 is a reply to message #498313] |
Tue, 24 November 2009 11:52  |
Eclipse User |
|
|
|
Hi Martin,
Assuming this IFile is a temp file in the RemoteSystemsTempFile project, you
can get at the remote information by using the SystemIFileProperties class.
For example:
SystemIFileProperties properties = new SystemIFileProperties(resource);
String ssStr = properties.getRemoteFileSubSystem();
ISubSystem ss = RSECorePlugin.getTheSystemRegistry().getSubSystem(ssStr);
Dave
"Martin Tauber" <martin.tauber@t-online.de> wrote in message
news:hdrhte$o2$2@build.eclipse.org...
> Hi Everybody,
>
> I have the following challange:
>
> I am using the rse filesystem. Now in my program I am using IFiles. Is
> there a way to find out which connection is used to access the real file
> (I would like to run a command on the remote host)
>
> Thanks
> Martin
|
|
|
Re: Getting remote connection [message #582858 is a reply to message #498313] |
Tue, 24 November 2009 11:52  |
Eclipse User |
|
|
|
Hi Martin,
Assuming this IFile is a temp file in the RemoteSystemsTempFile project, you
can get at the remote information by using the SystemIFileProperties class.
For example:
SystemIFileProperties properties = new SystemIFileProperties(resource);
String ssStr = properties.getRemoteFileSubSystem();
ISubSystem ss = RSECorePlugin.getTheSystemRegistry().getSubSystem(ssStr);
Dave
"Martin Tauber" <martin.tauber@t-online.de> wrote in message
news:hdrhte$o2$2@build.eclipse.org...
> Hi Everybody,
>
> I have the following challange:
>
> I am using the rse filesystem. Now in my program I am using IFiles. Is
> there a way to find out which connection is used to access the real file
> (I would like to run a command on the remote host)
>
> Thanks
> Martin
|
|
|
Powered by
FUDForum. Page generated in 0.05359 seconds