Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » SystemRemoteFolderDialog - How to get string with full path?
SystemRemoteFolderDialog - How to get string with full path? [message #17677] Wed, 09 January 2008 10:23 Go to next message
Harald Krapfenbauer is currently offline Harald Krapfenbauer
Messages: 16
Registered: July 2009
Junior Member
Hello,

I'm using a SystemRemoteFolderDialog to let the user choose a path on a
remote machine.
As I investigated for now, getSelectedObject() returns the file or
folder that was chosen. The weird thing is that this method returns an
Object.

Now I want to get the full path of the folder into a String. Calling
toString() on the object only gives me the selected element, i.e.
"harald" instead of "/home/harald"

How can I get the full path? May I cast this Object to something like
IHostFile??

Thank you and best regards,
Harald
Re: SystemRemoteFolderDialog - How to get string with full path? [message #17729 is a reply to message #17677] Thu, 10 January 2008 08:21 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 975
Registered: July 2009
Senior Member
The outputObject will typically be instanceof IRemoteFile. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214886

Cheers,
Martin

Harald Krapfenbauer wrote:
> Hello,
>
> I'm using a SystemRemoteFolderDialog to let the user choose a path on a
> remote machine.
> As I investigated for now, getSelectedObject() returns the file or
> folder that was chosen. The weird thing is that this method returns an
> Object.
>
> Now I want to get the full path of the folder into a String. Calling
> toString() on the object only gives me the selected element, i.e.
> "harald" instead of "/home/harald"
>
> How can I get the full path? May I cast this Object to something like
> IHostFile??
>
> Thank you and best regards,
> Harald
Re: SystemRemoteFolderDialog - How to get string with full path? [message #571946 is a reply to message #17677] Thu, 10 January 2008 08:21 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 975
Registered: July 2009
Senior Member
The outputObject will typically be instanceof IRemoteFile. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214886

Cheers,
Martin

Harald Krapfenbauer wrote:
> Hello,
>
> I'm using a SystemRemoteFolderDialog to let the user choose a path on a
> remote machine.
> As I investigated for now, getSelectedObject() returns the file or
> folder that was chosen. The weird thing is that this method returns an
> Object.
>
> Now I want to get the full path of the folder into a String. Calling
> toString() on the object only gives me the selected element, i.e.
> "harald" instead of "/home/harald"
>
> How can I get the full path? May I cast this Object to something like
> IHostFile??
>
> Thank you and best regards,
> Harald
Previous Topic:terminal view in an RCP application
Next Topic:CVS checkout to remote project folder fails
Goto Forum:
  


Current Time: Sat Apr 19 09:01:10 EDT 2014

Powered by FUDForum. Page generated in 0.01603 seconds