Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328666

Summary: Memory leak in MetaDataLocatorFactory
Product: [WebTools] Java Server Faces Reporter: Carlin Rogers <carlin.rogers>
Component: JSF ToolsAssignee: Carlin Rogers <carlin.rogers>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.2.2   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
add MetaDataLocatorFactory as a listener for project delete events none

Description Carlin Rogers CLA 2010-10-25 18:58:32 EDT
The MetaDataLocatorFactory does not remove locators when a project is deleted from the workspace. The class implements IResourceChangeListener and has code to support removing the locators but is not configured to listen for the delete event, only the project close.

It is a simple fix to modify the call to the workspace addResourceChangeListener() method and add the flag to listen for project delete events.
Comment 1 Carlin Rogers CLA 2010-10-25 19:02:06 EDT
Created attachment 181686 [details]
add MetaDataLocatorFactory as a listener for project delete events

Will test this patch and then commit.
Comment 2 Carlin Rogers CLA 2010-10-25 19:41:59 EDT
committed patch to HEAD.