Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Getting remote connection
Getting remote connection [message #498313] Mon, 16 November 2009 12:51 Go to next message
Martin Tauber is currently offline Martin TauberFriend
Messages: 120
Registered: July 2009
Senior Member
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 16:52 Go to previous message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
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 16:52 Go to previous message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
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: Sat Dec 20 14:28:11 GMT 2014

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

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