Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360698 - ModelProviderManager needs a method to check if a Project has a Model Provider without logging error.
Summary: ModelProviderManager needs a method to check if a Project has a Model Provide...
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Salvador Zalapa CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 12:53 EDT by Salvador Zalapa CLA
Modified: 2011-10-12 15:20 EDT (History)
1 user (show)

See Also:
cbridgha: review+


Attachments
Patch (3.04 KB, patch)
2011-10-12 12:56 EDT, Salvador Zalapa CLA
ccc: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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