<AWT Dev> RFE: new function in Desktop class

Paulo Levi i30817 at gmail.com
Tue Mar 23 04:05:13 PDT 2010


Possibly
public void explore(File ... f)
or even
public void explore(File f, File ... fs)
If you'd like multiple files selected.
The second signature here has complexities in the implementation, but as the
code is *never* going to be hot (no one sane would open explorer windows in
a loop, i don't think it matters, and it avoids a zero length file array. Or
you can use the first and do nothing or throw a exception on that case.


On Tue, Mar 23, 2010 at 10:54 AM, Paulo Levi <i30817 at gmail.com> wrote:

> Nope. I don't have a computer that would be able to build the jdk. But it
> seems like it would be a function that already exists, at least partially
> and privately. I've meanwhile thought of a good name.
> public void explore(File f)?
>
> What do you think?
>
>
> On Mon, Mar 22, 2010 at 7:42 AM, Denis Fokin <Denis.Fokin at sun.com> wrote:
>
>>  Hi Paulo,
>>
>> do you have a reference implementation or some kind of prototype?
>>
>> Thank you,
>>       Denis.
>>
>> On 3/6/10 6:48 PM, Paulo Levi wrote:
>>
>> Hi. I'm using Desktop.open to open the default file explorer, by doing
>> File.getParent() and opening that.
>>
>> However i'd like the file(s) that interest me to open selected in the file
>> explorer, but as the open function is overloaded there doesn't seem to be a
>> way to do that?
>>
>> I'm proposing to separate the file explorer part into a separate function
>> call that can be called with a normal file, not only directories, so that
>> the files can appear selected and visible, like any decent file explorer
>> does.
>>
>> Can't think of a good name for the function since browse is already taken.
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20100323/f7233bb3/attachment.html 


More information about the awt-dev mailing list