Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Management » How to show only remote files in RSE's remote file selection dialog?
How to show only remote files in RSE's remote file selection dialog? [message #684007] Tue, 14 June 2011 16:54 Go to previous message
Samuel Lampa is currently offline Samuel Lampa
Messages: 9
Registered: June 2011
Junior Member
I'm using the following code to fire up a Remote File Selection Dizard in RSE, and receive the full path of the selected file:

SystemRemoteFileDialog dialog = new SystemRemoteFileDialog(SystemBasePlugin.getActiveWorkbenchShell());
dialog.open();
Object o = dialog.getSelectedObject();
if (o instanceof IRemoteFile) {
    IRemoteFile file = (IRemoteFile)  
    System.out.println("Selected file's abs path: " + file.getAbsolutePath());
} else {
    System.out.println("No valid file selected!");
}


But, the file selection dialog shows both the local files and the remote ones, as well as a drop-down menu at the top, to select connection; local, or one of the remote hosts. (See image at i.stack.imgur.com/jHQkC.png ).

How can I programmatically hide this drop-down menu, and show only the files for a specific remote connection?

Also, I'd like to have the file tree show only files under a specific directory (e.g. the user's home dir). How can I do that? In the main RSE view, it is possible to do this manually by right-clicking a folder, and selecting "Go Into", but I want to do it programmatically.

Best Regards
// Samuel

[Updated on: Tue, 14 June 2011 17:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic:RSE (and also Aptana) uploads are forced to sub-folder
Next Topic:RSE vs local project with linked remote files
Goto Forum:
  


Current Time: Sat May 18 08:03:54 EDT 2013

Powered by FUDForum. Page generated in 0.04853 seconds