Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Wendy Zheng is currently offline Wendy Zheng
Messages: 20
Registered: July 2009
Junior Member
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
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 975
Registered: July 2009
Senior Member
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
Wendy Zheng is currently offline Wendy Zheng
Messages: 20
Registered: July 2009
Junior Member
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
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 975
Registered: July 2009
Senior Member
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
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 975
Registered: July 2009
Senior Member
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
Wendy Zheng is currently offline Wendy Zheng
Messages: 20
Registered: July 2009
Junior Member
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
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 975
Registered: July 2009
Senior Member
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: Wed Apr 16 23:55:43 EDT 2014

Powered by FUDForum. Page generated in 0.01999 seconds