This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
1) e.g. make a group of modules *without* QuickFileChooser module 2) Open QuickFileChooser 3) Open ChooserComponentUI class 4) Go to the group and invoke "Close Other Projects" ChooserComponentUI stays open. And when you close such a files manually then they are not opened during the project next open. (i.e. ChooserComponentUI is not opened when you open QuickFileChooser again). Might sounds like nitpicking but you could find it unconvenient with habits similar to mine ;) Should behave like standard project's Close action.
Need to check but may be a bug in projectui. IIRC it was decided (jrechtacek? I think) to only open/close files when prjs opened/closed from the regular GUI actions, not from the OpenProjects API. Not sure why.
More I'm using this more inconvenient it is. Since often I want to temporarily close all project in the groups through Group view. Then all projects leave there their files opened - which was the original reason to close the group. So in the end one lost "opened-files-setting" of all projects -> P3 ;) Jirka's reason is in the issue 41853. Probably could be solved in the projects/projectui in o.n.m.project.ui.OpenProjectsTrampolineImpl.closeAPI() by calling "if (ProjectUtilities.closeAllDocuments(projects)) { close them }" (has to be called from within AWT). Probably would have to be documented in OpenProjects.close() that projects may stay opend. Ideally the method would return boolean saying whether the user (or something) cancels a closing process.
Okay. Any pointers to what the standard close project action is doing to save the file list would be appreciated. I assumed it was automatic when closing the project via OpenProjects - I didn't know the code doing the closing needed to do something.
See my previous comment. o.n.m.project.ui.ProjectUtilities.closeAllDocuments|storeProjectOpenFiles in projects/projectui module do this. But it is not called by OpenProjects.close() -> actually OpenProjectsTrampolineImpl#closeAPI() (to which OpenProjects.close() delegates by default) does not call the PU.cAD(). cf. my previous comment.
Would adding OpenProjects.close (boolean closeFiles) be simpler? (and optionally deprecate OpenProjects.close(), or just document that it will not close files?). It seems more straightforward.
Not maintaining this module any more.