Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Fri Apr 25 21:45:06 EDT 2025

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

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

Back to the top