<AWT Dev> [9] Review request for: 8136763 [macosx] java always returns only one value for "text/uri-list" dataflavor even if several files were copied
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Tue Oct 6 15:29:31 UTC 2015
Looks like the test is not in the final state.
On 06.10.15 11:01, mikhail cherkasov wrote:
> Hi there,
>
> Please review a fix:
> bug: https://bugs.openjdk.java.net/browse/JDK-8136763
> webrev: http://cr.openjdk.java.net/~mcherkas/8136763/webrev.00/
>
> The problem is similar to https://bugs.openjdk.java.net/browse/JDK-8081787
> When user requests data for uri-list flavor, java returns xml without
> any interpretation.
> It is fixed by processing xml by dragQueryFile() method.
>
> The other problem: if several files has been copied, there're available
> two types in pasteboard for reading:
> NSURLPboardType
> NSFilenamesPboardType
> but text/uri-list is associated only with NSURLPboardType - which
> returns only first value from list of files that was copied.
> To resolve this I added:
> "FILE_NAME=text/uri-list;eoln="\r\n";terminators=1" line above
> "URL=text/uri-list;eoln="\r\n";terminators=1".
> So now, java will select FILE_NAME and return a full list of copied files.
>
> Thanks,
> Mikhail.
--
Best regards, Sergey.
More information about the awt-dev
mailing list