Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is this a SWT bug?
Is this a SWT bug? [message #461600] Mon, 26 September 2005 23:46 Go to next message
Bing Xu is currently offline Bing XuFriend
Messages: 11
Registered: July 2009
Junior Member
Hi there,

There is a confusing behaviour in the DirectoryDialog implementation in
SWT. When a node is selected in the directory tree box, the selected
directory appears in the below folder field, and that's fine. When users
type in an absolute pathname in the Folder field, and click OK. The
typed-in pathname will be returned, that is, it overrides the selection
in the tree. However, if users type in a relative path in the Folder
field, the typed-in value is ignored, and returned value is the one
selected in the tree.

Though it's hard to decide on how to sync between the two, I'd like to
have the relative pathname appended to the selected node in the tree as
the returned value in the 2nd case. Or better, when a relative pathname
is being entered into the Folder field, the selection in the tree should
be changing accordingly. Otherwise the two different cases just confuse
users. Or for a simple solution, why not just make the Folder field
read-only.

Please comment whether you consider this a bug or not?

Thanks.
Bing.
Re: Is this a SWT bug? [message #461602 is a reply to message #461600] Tue, 27 September 2005 01:54 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
Current havior may be correct.
Note that relative path may be relative to none!
More confusing for users unless you can control.

Regards.

"Bing Xu" <bxu@us.ibm.com> wrote in message
news:dha15f$fm1$1@news.eclipse.org...
> Hi there,
>
> There is a confusing behaviour in the DirectoryDialog implementation in
> SWT. When a node is selected in the directory tree box, the selected
> directory appears in the below folder field, and that's fine. When users
> type in an absolute pathname in the Folder field, and click OK. The
> typed-in pathname will be returned, that is, it overrides the selection in
> the tree. However, if users type in a relative path in the Folder field,
> the typed-in value is ignored, and returned value is the one selected in
> the tree.
>
> Though it's hard to decide on how to sync between the two, I'd like to
> have the relative pathname appended to the selected node in the tree as
> the returned value in the 2nd case. Or better, when a relative pathname is
> being entered into the Folder field, the selection in the tree should be
> changing accordingly. Otherwise the two different cases just confuse
> users. Or for a simple solution, why not just make the Folder field
> read-only.
>
> Please comment whether you consider this a bug or not?
>
> Thanks.
> Bing.
Re: Is this a SWT bug? [message #462010 is a reply to message #461600] Wed, 05 October 2005 01:35 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
The DirectoryDialog is provided by Windows. We don't/shouldn't try to
override its behavior.

"Bing Xu" <bxu@us.ibm.com> wrote in message
news:dha15f$fm1$1@news.eclipse.org...
> Hi there,
>
> There is a confusing behaviour in the DirectoryDialog implementation in
> SWT. When a node is selected in the directory tree box, the selected
> directory appears in the below folder field, and that's fine. When users
> type in an absolute pathname in the Folder field, and click OK. The
> typed-in pathname will be returned, that is, it overrides the selection
> in the tree. However, if users type in a relative path in the Folder
> field, the typed-in value is ignored, and returned value is the one
> selected in the tree.
>
> Though it's hard to decide on how to sync between the two, I'd like to
> have the relative pathname appended to the selected node in the tree as
> the returned value in the 2nd case. Or better, when a relative pathname
> is being entered into the Folder field, the selection in the tree should
> be changing accordingly. Otherwise the two different cases just confuse
> users. Or for a simple solution, why not just make the Folder field
> read-only.
>
> Please comment whether you consider this a bug or not?
>
> Thanks.
> Bing.
Previous Topic:preserving tree state when updating viewer input
Next Topic:Can I use TabFolder widget on IBM J9 ?
Goto Forum:
  


Current Time: Fri Oct 20 01:53:42 GMT 2017

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

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