Skip to main content



      Home
Home » Eclipse Projects » DSDP - Target Management » Getting remote connection
Getting remote connection [message #498313] Mon, 16 November 2009 07:51 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Getting remote connection
Next Topic:"Browse For Folder" Dialog does not work as expected
Goto Forum:
  


Current Time: Tue Jul 22 18:45:06 EDT 2025

Powered by FUDForum. Page generated in 0.05359 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top