Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » programmatically select a file in the "Remote Systems" view
programmatically select a file in the "Remote Systems" view [message #582495] Thu, 10 September 2009 15:24
Vsevolod Sandomirskiy is currently offline Vsevolod SandomirskiyFriend
Messages: 21
Registered: July 2009
Junior Member
I have an IHost reference and a String that represents a path on the
remote host, e.g. "/tmp/logs". The host uses Sftp Files subsystem
(linux). How can I programmatically find and select a corresponding
IRemoteFile file in the "Remote Systems" view?

I can get a FileServiceSubSystem from the host and find the
SystemViewPart. I guess I have to call SystemViewPart.selectReveal(),
but I wasn't able to construct the right selection. The best I can do is
to create a TreeSelection with a TreePath containing two nodes, the host
and the FileServiceSubSystem. I couldn't get any deeper to the file level.

Thanks.
Previous Topic:persistence of IHost custom properties
Next Topic:programmatically select a file in the "Remote Systems" view
Goto Forum:
  


Current Time: Sat Nov 29 08:51:11 GMT 2014

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

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