On 10/1/22 2:12 PM, Michael Bien wrote:
Hi Ernie,

On 01.10.22 21:07, Ernie Rael wrote:

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.
Sed/awk/..., its got to be faster than opening them by hand. I had thought I could open nbbuild or something, and ask for dependent projects, but I guess not.



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!
Since jackpot was first available, I thought that was something that could really sell NetBeans. same feeling for RCP. Seemed to me that Oracle could really have sold RCP; as an application platform to their customers.

(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)

Now that you mention it, I did notice. Once I thought I didn't restart but it seemed to be working. I was a little confused, but I wasn't sure exactly what was going or, or what I did; very cool. Thanks, now I can consciously use it.

-ernie


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






---------------------------------------------------------------------
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