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 98894 - OpenProjects.PROPERTY_OPEN_PROJECTS fired with null old/newValue
Summary: OpenProjects.PROPERTY_OPEN_PROJECTS fired with null old/newValue
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-25 20:08 UTC by _ sandipchitale
Modified: 2007-03-27 17:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ sandipchitale 2007-03-25 20:08:56 UTC
[For module Project UI API]

The old and new value returned by PropertyChangeEvent for property 
PROPERTY_OPEN_PROJECTS are null.

Workaround is for client code to cache the array of open projects returned by:

public Project[] getOpenProjects()

and then call the same API again in response to the PropertyChangeEvent and 
compute the diffs to detect opened and/or closed projects.

This is very inefficient.
Comment 1 Jesse Glick 2007-03-25 21:32:57 UTC
While you're at it, could fix issue #64397.
Comment 2 Milos Kleint 2007-03-26 12:05:31 UTC
done. values now contain array of projects (as the getter does).



IDE: [3/26/07 1:05 PM] Committing started
Checking in
projectui/test/unit/src/org/netbeans/modules/project/ui/OpenProjectsTrampolineImplTest.java;
/cvs/projects/projectui/test/unit/src/org/netbeans/modules/project/ui/OpenProjectsTrampolineImplTest.java,v
 <--  OpenProjectsTrampolineImplTest.java
new revision: 1.6; previous revision: 1.5
done
Checking in
projectui/test/unit/src/org/netbeans/modules/project/ui/OpenProjectListTest.java;
/cvs/projects/projectui/test/unit/src/org/netbeans/modules/project/ui/OpenProjectListTest.java,v
 <--  OpenProjectListTest.java
new revision: 1.12; previous revision: 1.11
done
Checking in
projectui/src/org/netbeans/modules/project/ui/OpenProjectsTrampolineImpl.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectsTrampolineImpl.java,v
 <--  OpenProjectsTrampolineImpl.java
new revision: 1.10; previous revision: 1.9
done
Checking in projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java,v
 <--  OpenProjectList.java
new revision: 1.66; previous revision: 1.65
done
Checking in
projectuiapi/src/org/netbeans/modules/project/uiapi/OpenProjectsTrampoline.java;
/cvs/projects/projectuiapi/src/org/netbeans/modules/project/uiapi/OpenProjectsTrampoline.java,v
 <--  OpenProjectsTrampoline.java
new revision: 1.6; previous revision: 1.5
done
Checking in projectuiapi/src/org/netbeans/api/project/ui/OpenProjects.java;
/cvs/projects/projectuiapi/src/org/netbeans/api/project/ui/OpenProjects.java,v 
<--  OpenProjects.java
new revision: 1.10; previous revision: 1.9
done
IDE: [3/26/07 1:05 PM] Committing finished
Comment 3 _ sandipchitale 2007-03-27 15:51:27 UTC
I blogged about this fix here:

http://blogs.sun.com/scblog/entry/monitoring_opening_and_closing_og

I received a commenty asking whether this will be fixed in some hotfix release?

Comment:

...Is there a plan, for releasing netbeans fixes as hotfixes/binary patches ? 
I see no reason in doing so, especially considering that what is affected at 
most is one or 2 classes. So why should one need to get unstable CVS head 
branch for fixes ? Shouldn't netbeans have a update support that can update 
core features for stuff like bug fixes/security updates etc ? 

Posted by gumnaam

Is there a plan to fix this bug in NetBeans 5.5 hot fix or NetBeans 5.5.1?


Comment 4 Jesse Glick 2007-03-27 17:28:20 UTC
P3 bugs are generally not backported. Some P1-P2 bugs are.