Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313830 - JSFUtils should use content type instead file extension in isValidKnownExtension.
Summary: JSFUtils should use content type instead file extension in isValidKnownExtens...
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.3 M7   Edit
Assignee: Ian Trimble CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 19:57 EDT by Cameron Bateman CLA
Modified: 2017-12-19 13:26 EST (History)
2 users (show)

See Also:


Attachments

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