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.
[ BUILD # : 200512272030 ] [ JDK VERSION : 1.5.0_06 ] 1. Start with empty userdir 2. Create project 3. Create another one 4. Press Alf+F+M (Invoke Set Main Project action) 5. There is only one project in the list
Good catch, thanks. Probably caused by fix of issue #70368.
This has to be fixed for NB 5.0 . Reproduced in NB 5.0 (200601012030), also File | Set Main Project is still disabled.
Fixed in the trunk. The leak described in issue #70368 should not be reintroduced. QA, please verify the fix. Thanks. Checking in src/org/netbeans/modules/project/ui/actions/SetMainProject.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/SetMainProject.java,v <-- SetMainProject.java new revision: 1.11; previous revision: 1.10 done Checking in test/unit/src/org/netbeans/modules/project/ui/actions/SetMainProjectTest.java; /cvs/projects/projectui/test/unit/src/org/netbeans/modules/project/ui/actions/SetMainProjectTest.java,v <-- SetMainProjectTest.java new revision: 1.2; previous revision: 1.1 done
I've tried it in NB 5.1 (200601021900) and it works fine - verified
Created attachment 28139 [details] Proposed fix.
Looks OK.
Fixed also on the release50 branch: Checking in src/org/netbeans/modules/project/ui/actions/SetMainProject.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/SetMainProject.java,v <-- SetMainProject.java new revision: 1.9.4.2; previous revision: 1.9.4.1 done Checking in test/unit/src/org/netbeans/modules/project/ui/actions/SetMainProjectTest.java; /cvs/projects/projectui/test/unit/src/org/netbeans/modules/project/ui/actions/SetMainProjectTest.java,v <-- SetMainProjectTest.java new revision: 1.1.4.1; previous revision: 1.1 done
verified in NB 5.0 (200601042030)