Hi Ernie,
On 01.10.22 21:07, Ernie Rael wrote:
There are dialogs scattered around NetBeans that do not specify a
parent. So when they come up they are on the "default screen", which
for me is typically not the screen with the NetBeans main window. More
that once I've wondered why NB is hung (maybe I'm a little too
focused). There's PR "Check for EnvVar/SysProp for preferred screen",
https://github.com/apache/netbeans/pull/4714 that has some related
discussion.
As a an experiment, there's the hint seen below. Is there a way to run
it on all projects, not just the open projects?
I don't think there is. When I ran repo wide refactorings (e.g #3844) I
opened all modules in netbeans and ran the hints on them. I have a
project group for this purpose. But be warned, it takes a while to run
hints over ~840 projects. Indexing/scanning takes a bit too after you
opened them. Plan accordingly :P
Project group settings have absolute paths in them, I could give them to
you but they won't work unfortunately.
Similar hint can be put together for other situations, escpecially
JOptionPane.show*(parent, ...). This would probably necessitate adding
a lot of dependencies on org.openide.windows.
nice to see more devs using refactoring rules. They can be super useful!
(not sure if you've noticed. but if you have them in
.netbeans/15/config/rules, you can simply edit and save them and they
going to be updated in realtime in the editor, cuts the dev cycle down
significantly. You used to have to go through x menus to reload them or
restart NB. You can run them also via the usual run file action)
best regards,
-mbien
-ernie
"chooser dialog null":
$jfc.showOpenDialog(null) :: $jfc instanceof javax.swing.JFileChooser
=>
$jfc.showOpenDialog(org.openide.windows.WindowManager.getDefault.getMainWindow)
;;
"chooser dialog null":
$jfc.showSaveDialog(null) :: $jfc instanceof javax.swing.JFileChooser
=>
$jfc.showSaveDialog(org.openide.windows.WindowManager.getDefault.getMainWindow)
;;
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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