Skip to main content


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 07:37 Go to next message
Wendy Zheng is currently offline Wendy ZhengFriend
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] Tue, 30 December 2008 02:01 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
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] Thu, 22 January 2009 00:35 Go to previous messageGo to next message
Wendy Zheng is currently offline Wendy ZhengFriend
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 09:53 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
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] Tue, 30 December 2008 02:01 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
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] Thu, 22 January 2009 00:35 Go to previous message
Wendy Zheng is currently offline Wendy ZhengFriend
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 09:53 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
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:TM 3.0.2 is released
Next Topic:How to add additional systemTypeIds to Telnet Shells
Goto Forum:
  


Current Time: Fri Apr 19 00:34:36 GMT 2024

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

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

Back to the top