<AWT Dev> A patch so multiple selected files can have different directories.

Anthony Petrov anthony.petrov at oracle.com
Mon Jan 23 06:47:20 PST 2012


Hi Matthew,

Actually, setting up a build environment for OpenJDK on Linux is not 
that hard. In most cases it could be as simple as:

$ hg clone http://hg.openjdk.java.net/jdk8/awt/jdk
$ cd jdk/make
$ ALT_BOOTDIR=/usr/java/default make

(ALT_BOOTDIR must point to an existing JDK installation).

Every missing part (if any) will be reported during the build, and you 
can use your package manager to install them one by one, and then simply 
restart the build. If everything is set up properly, the full build 
takes only 5 or 10 minutes on a Linux box to complete.

You can also read the following document that describes everything that 
needs to be set up in order to build OpenJDK:

http://hg.openjdk.java.net/jdk8/build/raw-file/tip/README-builds.html

Please test that your changes compile, also please test how the 
FileDialog works after your patch is applied. Especially test the simple 
cases (e.g. when selecting just one file) to ensure there's no 
regressions. Please report your testing experience on this mailing list. 
Thank you!

--
best regards,
Anthony

On 01/22/12 00:13, Matthew Smith wrote:
> (2012-01-21) (Matt)
>
> openjdk/jdk/src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c
>
> The intent of this patch is to cause the FileDialog to return the full path
> information when used on gtk+3, where multiple files can be selected
> that have different paths.
>
> I have been careful about writing these changes, but I do not have
> a build chain setup to compile the native source. The expected behavior
> is that when files are selected from "Recently Used" the
> 'current_directory'
> is set to NULL. When this happens the returned values will be, the root
> directory, '/', and the filenames will contain complete path information.
>
> Without this patch, the 'current_directory' is set to null. Then the
> files returned
> will have the cwd + filename. The consequence is that 'Recent Files' cannot
> be used with the awt.FileDialog.
>
> (sunbug=7132194)



More information about the awt-dev mailing list