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.
What is the reason for the method ProjectsEvent.getDescriptor? You can obtain the descriptor via ProjectsEvent.getProject().getDescriptor() easily. Javadoc is silent about some special purpose. Thanks
The Project.getDescritpor() did not exist at the time when ProjectsEvent class was introduced. Anyway, the idea is that when you receive projectClosed event the project you can get from ProjectsEvent.getProject() is already closed and you should not call any method on it. That's why PE.getDescriptor might be useful. U would rather have this method since I think it's better to say 'don't call anythink on closed projects' than to explain which methods can be called and which can't. I will update the javadoc.
Hmm, I think you will have to explain behavior of a closed Project object at any rate. Probably Project.isClosed() would be helpful. I am still not convinced about necessity of ProjectsEvent.getDescriptor.
OK, you aren't convinced and I am. Who will decide this dilema? Well, I try. Although I think that having PE.getDescriptor will hurt nothing even if it would be redundant API there is no reason to make the risk. We can easily add this method in the future since adding is compatible change. So, I will remove this method and we will see.
UPGRADE GUIDE: Use Project.getDescriptor().getName() instead.
Done.
Created attachment 8615 [details] commitlog of the change
verified
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as CLOSED.