Skip to main content



      Home
Home » Eclipse Projects » DSDP - Target Management » How to specify the parent directory in SystemRemoteFileDialog
How to specify the parent directory in SystemRemoteFileDialog [message #30287] Wed, 10 December 2008 02:37 Go to next message
Eclipse UserFriend
Hi,

The default searching directories are "My Home" and "Root" in
SystemRemoteFileDialog.

Is there anyway to enable the textfield in the dialog to let user specify
where to browse from?

Or should I construct other kind of dialog which may have more flexible UI
for file browsing in the remote host?

Great thanks for advice.

Wendy
Re: How to specify the parent directory in SystemRemoteFileDialog [message #30570 is a reply to message #30287] Mon, 29 December 2008 21:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi Wendy,

SystemRemoteResourceDialog#setPreselection() is what you want.
For details, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=174944
as well as the EclipseCon 2008 Tutorial code from
http://www.eclipsecon.org/2008/?page=sub/&id=38
(click on the "Presentation" link on top to get the ZIP
file which includes the sample code).

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Wendy Zheng wrote:
> Hi,
>
> The default searching directories are "My Home" and "Root" in
> SystemRemoteFileDialog.
> Is there anyway to enable the textfield in the dialog to let user specify
> where to browse from?
> Or should I construct other kind of dialog which may have more flexible UI
> for file browsing in the remote host?
> Great thanks for advice.
> Wendy
>
Re: How to specify the parent directory in SystemRemoteFileDialog [message #31354 is a reply to message #30570] Wed, 21 January 2009 19:35 Go to previous messageGo to next message
Eclipse UserFriend
Thank you, Martin.

SystemRemoteResourceDialog#setPreselection() works in function.

It is quite slow. Is that because we have mounted file system
and the API is doing some searching?

But it works. Thanks.

Regards,
Wendy
Re: How to specify the parent directory in SystemRemoteFileDialog [message #31375 is a reply to message #31354] Fri, 23 January 2009 04:53 Go to previous message
Eclipse UserFriend
Hi Wendy,

in order to set the preselection properly, the code must
list the directories of all parent folders of your selected
folder. This may take some time.

Please file a bug if you believe this doesn't explain the
slowness sufficiently.

Thanks,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Wendy Zheng wrote:
> Thank you, Martin.
>
> SystemRemoteResourceDialog#setPreselection() works in function.
> It is quite slow. Is that because we have mounted file system
> and the API is doing some searching?
> But it works. Thanks.
>
> Regards,
> Wendy
>
Re: How to specify the parent directory in SystemRemoteFileDialog [message #578276 is a reply to message #30287] Mon, 29 December 2008 21:01 Go to previous message
Eclipse UserFriend
Hi Wendy,

SystemRemoteResourceDialog#setPreselection() is what you want.
For details, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=174944
as well as the EclipseCon 2008 Tutorial code from
http://www.eclipsecon.org/2008/?page=sub/&id=38
(click on the "Presentation" link on top to get the ZIP
file which includes the sample code).

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Wendy Zheng wrote:
> Hi,
>
> The default searching directories are "My Home" and "Root" in
> SystemRemoteFileDialog.
> Is there anyway to enable the textfield in the dialog to let user specify
> where to browse from?
> Or should I construct other kind of dialog which may have more flexible UI
> for file browsing in the remote host?
> Great thanks for advice.
> Wendy
>
Re: How to specify the parent directory in SystemRemoteFileDialog [message #578769 is a reply to message #30570] Wed, 21 January 2009 19:35 Go to previous message
Eclipse UserFriend
Thank you, Martin.

SystemRemoteResourceDialog#setPreselection() works in function.

It is quite slow. Is that because we have mounted file system
and the API is doing some searching?

But it works. Thanks.

Regards,
Wendy
Re: How to specify the parent directory in SystemRemoteFileDialog [message #578785 is a reply to message #31354] Fri, 23 January 2009 04:53 Go to previous message
Eclipse UserFriend
Hi Wendy,

in order to set the preselection properly, the code must
list the directories of all parent folders of your selected
folder. This may take some time.

Please file a bug if you believe this doesn't explain the
slowness sufficiently.

Thanks,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Wendy Zheng wrote:
> Thank you, Martin.
>
> SystemRemoteResourceDialog#setPreselection() works in function.
> It is quite slow. Is that because we have mounted file system
> and the API is doing some searching?
> But it works. Thanks.
>
> Regards,
> Wendy
>
Previous Topic:Eclipse PDT + RSE (FTP)
Next Topic:Eclipse PDT + RSE (FTP)
Goto Forum:
  


Current Time: Thu Jul 24 18:15:17 EDT 2025

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

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

Back to the top