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

Bug 313830

Summary: JSFUtils should use content type instead file extension in isValidKnownExtension.
Product: [WebTools] Java Server Faces Reporter: Cameron Bateman <cameron.bateman>
Component: CoreAssignee: Ian Trimble <ian.trimble>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: raghunathan.srinivasan, yurykats
Version: 3.2   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/114275
https://git.eclipse.org/c/jsf/webtools.jsf.git/commit/?id=aac74c7bae98fe513ab3cd1bbe37f516cd25955b
Whiteboard:

Description Cameron Bateman CLA 2010-05-20 19:57:12 EDT
The files we decide are JSF files should be user configurable through the content type mechanism.
Comment 1 Yury Kats CLA 2010-05-21 11:14:40 EDT
Indeed.

Sample isFacelet check could look like this:

IContentType faceletContentType = Platform.getContentTypeManager().getContentType("jsf.facelet");
try {
return file.getContentDescription().getContentType().isKindOf(faceletContentType);
} catch (Exception e) {
}
return false;
Comment 2 Ian Trimble CLA 2011-03-18 19:20:36 EDT
Fix submitted at 2011/03/18 04:20PM PDT.
Comment 3 Eclipse Genie CLA 2017-12-18 20:16:57 EST
New Gerrit change created: https://git.eclipse.org/r/114275