Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357846 - FacetProjectCreationDataModelProvider creates listeners that are not cleaned up in the dispose method
Summary: FacetProjectCreationDataModelProvider creates listeners that are not cleaned ...
Status: RESOLVED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 3.2.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.2   Edit
Assignee: Roberto Sanchez Herrera CLA
QA Contact: Carl Anderson CLA
URL:
Whiteboard:
Keywords:
Depends on: 357558
Blocks: 360039
  Show dependency tree
 
Reported: 2011-09-15 13:32 EDT by Roberto Sanchez Herrera CLA
Modified: 2011-10-10 16:44 EDT (History)
0 users

See Also:
ccc: review+


Attachments
Proposed patch for 3.3.2 and 3.4 (5.68 KB, patch)
2011-10-10 16:00 EDT, Roberto Sanchez Herrera CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Sanchez Herrera CLA 2011-09-15 13:32:23 EDT
+++ This bug was initially created as a clone of Bug #357558 +++

The class org.eclipse.wst.common.componentcore.datamodel.FacetProjectCreationDataModelProvider creates listeners (IFacetedProjectListener and IDataModelListener) that are not cleaned up in the dispose method. This can cause problem in case other classes are using the data model after the provider is disposed. In fact, the provider should not act on the model if it has been already disposed.
Comment 1 Roberto Sanchez Herrera CLA 2011-09-15 13:37:53 EDT
This bug is to commit code to WTP 3.3.2 and 3.4.0
Comment 2 Roberto Sanchez Herrera CLA 2011-10-10 16:00:58 EDT
Created attachment 204901 [details]
Proposed patch for 3.3.2 and 3.4

This is the proposed patch. I used R3_3_maintenance (for 3.3.2) to create it, but I verified it can be applied to HEAD (for 3.4)as well.
Comment 3 Roberto Sanchez Herrera CLA 2011-10-10 16:44:23 EDT
Code committed to R3_3_maintenance and HEAD