Bug 10483 - SWT ControlExample DirectoryDialog does not choose directories
Summary: SWT ControlExample DirectoryDialog does not choose directories
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: Sun Solaris
: P5 blocker (vote)
Target Milestone: ---   Edit
Assignee: Kevin Cornell CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 10441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-02-28 10:56 EST by Justin Noel CLA
Modified: 2002-03-28 10:59 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Noel CLA 2002-02-28 10:56:55 EST
Eclipse Drop: December 19th Stable
OS: Solaris 2.7 w/ Sun Recommended Patches
HW: Sun Ultra 60
JRE: Sun 1.3.1
Motif: 2.1
CDE: 1.3

To Reproduce:
Run Control Example
Choose Dialog Tab
Select "Directory Dialog"
Click "Create Dialog"
Choose a directory
Failure
In the left pane notice "Result:*" is all that is displayed.

Under Linux-Motif the left pane reads "Result: /directory/directory"
Comment 1 Justin Noel CLA 2002-02-28 11:54:12 EST
May be related to Bug 10441.  This bug is only reproducable on Solaris 7.
Solaris 8 is consistant with Linux's correct behavior.
Comment 2 Grant Gayed CLA 2002-02-28 13:06:38 EST
*** Bug 10441 has been marked as a duplicate of this bug. ***
Comment 3 Grant Gayed CLA 2002-02-28 13:08:13 EST
Since Solaris 7 is not a supported platform this will be looked at time-
permitting.  Keeping PR open in the meantime.
Comment 4 Sridhar Bidigalu CLA 2002-03-13 10:42:03 EST
Same behavior noticed in the HP-UX 11.0

Eclipse stable build: 20020214
Motif: 2.1
CDE: 2.1.0
Java(TM) 2 RE, Standard Edition (build 1.3.1.02-011206-02:17)

On the file dialog, if you choose files from filtering out
from a different directory, if fails to open the file since
the directory selection is not taken or incrrect.
Comment 5 Grant Gayed CLA 2002-03-14 10:33:57 EST
If this happens on HP-UX too then this can be taken care of by the HP-UX owner, 
and will probably become fixed on Solaris 7 as a side effect.
Comment 6 Mike Wilson CLA 2002-03-14 15:58:31 EST
Sridhar, please fix this. Co-ordinate with Kevin Cornell at Rational to get 
the fix in.
Comment 7 Kevin Cornell CLA 2002-03-15 10:35:28 EST
The problem is that the XmFileSelectionBox widget on Solaris 7 has a default
XmNpathMode set to XmPATH_MODE_RELATIVE, whereas the default mode on Solaris 8 
is XmPATH_MODE_FULL. (I assume the default on Linux is also PATH_MODE_FULL).

I will apply a fix to DirectoryDialog.java and OS.java (new constants needed) 
after I verify the fix on HP-UX and Linux (next week some time).
Comment 8 Sridhar Bidigalu CLA 2002-03-28 10:37:24 EST
Sorry guys, I should have posted a comment before assigning it to
Kevin Cornell. Kevin figured out  the problem and corrected it, 
so he requested me this morning to be assigned to him so that 
he can change the status. Sorry, for the reassignment without 
any comment.
Comment 9 Kevin Cornell CLA 2002-03-28 10:45:17 EST
The fixes described in my previous comment (changes to motif/OS.java and 
motif/DirectoryDialog.java) have been applied. The previous look of the 
directory dialog box was different on Solaris 7 and HP-UX than it was on 
Solaris 8. The directory dialog boxes now all appear the same and the correct 
result is being returned on Solaris 7 and HP-UX.
Comment 10 Mike Wilson CLA 2002-03-28 10:59:18 EST
np. I figured it out. ;-)