Skip to main content


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 15:23 Go to next message
Harald Krapfenbauer is currently offline Harald KrapfenbauerFriend
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 13:21 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
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 13:21 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
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:Remote Workspace
Next Topic:CVS checkout to remote project folder fails
Goto Forum:
  


Current Time: Sat Apr 27 01:22:38 GMT 2024

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

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

Back to the top