Sven Reimers wrote:
> Maybe limit open all to a configurable limit by default.. ?
> Would be good to be helpful in most cases without killing the others..

Thanks Matthias for the heads-up challenge. Yes, Sven we need a "UI tweak" as 
Jan Lahoda put it: https://github.com/apache/netbeans/pull/
9631#discussion_r4163701215

The question is how such a tweak should look like? I was considering following 
alternatives:

### A: Special File on Disk

There could be `.nb-workspace.json` file in the root of NetBeans repository 
(and other repositories as well) that would specify what projects to open 
instead of scanning for all.

### B: Pre-scan Warning

When opening a project via a file chooser dialog a "pre-scan" for potential 
projects would be done. Warning the user if the scan looks too big. 

What then? Limit to 100 modules? Limit the depth of scan?

### C: Deferred Projects View

Display just a limited set of projects. Limited by a number or limited by a 
depth of hierarchy? Indicate that there is more. Give user a chance to proceed 
- by expanding a node? By invoking a "Scan for more projects" pop-up action?


### D: Precompute "Go to" Dialog

Initialize just some part of the functionality!? Scan for files or types and 
expose them in "Go to " dialogs, but don't really open the projects in 
OpenProjects.getDefault().

Solution with unpredictable consequences... out of existing concepts.


> there could be a UI tweak to not show these projects, unless explicitly open 
by the user

I am trying hard to visualize such a UI tweak for weeks, but so far it is not 
materializing. Help welcomed.

-jt

> Matthias Bläsing via dev <[email protected]> schrieb am Do., 1. Okt.
> 
> 2026, 21:44:
> > Hi,
> > 
> > Am Donnerstag, dem 01.10.2026 um 14:26 +0200 schrieb Jaroslav Tulach:
> > > When opening such a
> > > project, it (almost all the time) makes sense to **open all the
> > 
> > projects** in
> > 
> > > the Git repository. That's not a NetBeans philosophy. NetBeans allows
> > 
> > one to
> > 
> > > _cherry pick and open only some of the projects_.
> > 
> > before you implement this, think carefully what you reply to users,
> > that shoots themselves in the foot with that behavior.
> > 
> > - Liferay: https://github.com/liferay/liferay-portal
> > 
> >   150+x projects (based on modules/apps folder)
> > 
> > - NetBeans: https://github.com/apache/netbeans/
> > 
> >   1000+x projects (based on number of nbproject directories in the tree)
> > 
> > - OpenJDK: https://github.com/openjdk/jdk
> > 
> >   50+x projects (based on jdk/src)
> > 
> > - OpenHAB Addons: https://github.com/openhab/openhab-addons
> > 
> >   500+x projects (based on bundles)
> > 
> > Any of these is not fun if you accidentally choose to open all projects
> > at once.
> > 
> > Greetings
> > 
> > Matthias
> > 
> > ---------------------------------------------------------------------
> > 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