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.

Bug 70835 - [50cat] Set main project shows only one project
Summary: [50cat] Set main project shows only one project
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-28 16:58 UTC by vanob
Modified: 2006-01-05 17:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed fix. (5.37 KB, patch)
2006-01-03 10:44 UTC, Jan Lahoda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vanob 2005-12-28 16:58:17 UTC
[ 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
Comment 1 Jan Lahoda 2005-12-28 18:49:21 UTC
Good catch, thanks. Probably caused by fix of issue #70368.
Comment 2 Marian Mirilovic 2006-01-02 09:32:47 UTC
This has to be fixed for NB 5.0 .

Reproduced in NB 5.0 (200601012030), also File | Set Main Project is still disabled.
Comment 3 Jan Lahoda 2006-01-02 14:39:48 UTC
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
Comment 4 Marian Mirilovic 2006-01-03 10:26:26 UTC
I've tried it in NB 5.1 (200601021900) and it works fine - verified
Comment 5 Jan Lahoda 2006-01-03 10:44:24 UTC
Created attachment 28139 [details]
Proposed fix.
Comment 6 Tomas Zezula 2006-01-04 12:41:57 UTC
Looks OK.
Comment 7 Jan Lahoda 2006-01-04 12:53:48 UTC
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
Comment 8 Marian Mirilovic 2006-01-05 17:15:40 UTC
verified in NB 5.0 (200601042030)