Hi Paulo,
a prototype seems more important here. If you have courage to work on
this more deeply, it is great!
Thank you,
Denis.
On 3/23/10 2:05 PM, Paulo Levi wrote:
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 <[email protected]
<mailto:[email protected]>> 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 <[email protected]
<mailto:[email protected]>> 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.