neilcsmith-net commented on PR #7081:
URL: https://github.com/apache/netbeans/pull/7081#issuecomment-4011111047

   > The main difference is in the open vs browse action, e.g should html be 
opened in a system text editor or the browser. So I don't know the difference 
between `desktop.open("/tmp")` and `$ finder /tmp` - i always assumed it would 
have the same result.
   > 
   > What OSes can also do is to open files in file browsers and pre-select 
them on open. Both impls don't do that atm as far as i see. (`$ nemo 
/tmp/foo.txt`). Is this the aspect what is wanted on mac?
   
   The existing macOS action, and my replacement, do exactly this.  This is not 
`browse` vs `open`.  It defaults to 
[`Desktop::browseFileDirectory`](https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/java/awt/Desktop.html#browseFileDirectory(java.io.File))
 and only uses `open` as a fallback.
   
   Ideally this would select in system across all OS.  I chose `Locate in 
System` over `Select in System` because this is not currently the case.  I'm 
curious if any Linux dists have bothered to implement this action - I'm 
assuming not.  Yes, we could potentially offer fallbacks other than 
`Desktop::open`.
   
   > I can add an `if (mac) {open it slightly differently}` but I don't know 
what that would be.
   
   As in #9246 and above, and with no macOS check.
   
   > it is currently only exposed indirectly via drop to editor (and CLI). It 
even works with jars or other things which can be opened. The open-project 
window doesn't let you to that either.
   
   Yes, it's useful.  You can also use `Open File` with archives.  I don't 
think this is the correct place to put or implement this.  And it's a shame the 
opened tabs aren't persistent.  Ideally we add an option to use the existing 
open support on folders and archives.  Better behaviour may even belong in the 
Favorites module.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to