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

Bug 360698

Summary: ModelProviderManager needs a method to check if a Project has a Model Provider without logging error.
Product: [WebTools] WTP Java EE Tools Reporter: Salvador Zalapa <zalapa>
Component: jst.j2eeAssignee: Salvador Zalapa <zalapa>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc
Version: unspecifiedFlags: cbridgha: review+
Target Milestone: 3.4 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch ccc: iplog+

Description Salvador Zalapa CLA 2011-10-12 12:53:30 EDT
Build Identifier: 

Currently ModelProviderManager methods log an exception if you just try to check if a project has an associated ModelProvider, should be useful to extend the API to provide a method like hasModelProvider(IProject project) just to check if the project has or not a ModelProvider avoiding to logging an exception. This would help to provide a more robust solution to https://bugs.eclipse.org/bugs/show_bug.cgi?id=360142, ( whose patch relies on a filter list ).

Reproducible: Always
Comment 1 Salvador Zalapa CLA 2011-10-12 12:56:56 EDT
Created attachment 205050 [details]
Patch
Comment 2 Chuck Bridgham CLA 2011-10-12 14:44:09 EDT
approved
Comment 3 Carl Anderson CLA 2011-10-12 15:20:17 EDT
Committed to HEAD for WTP 3.4.0