SystemRemoteFolderDialog - How to get string with full path? [message #17677] |
Wed, 09 January 2008 10:23  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03522 seconds