[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dsdp.tm] programmatically select a file in the "Remote Systems" view

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.