| Summary: | JSFUtils should use content type instead file extension in isValidKnownExtension. | ||
|---|---|---|---|
| Product: | [WebTools] Java Server Faces | Reporter: | Cameron Bateman <cameron.bateman> |
| Component: | Core | Assignee: | 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
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;
Fix submitted at 2011/03/18 04:20PM PDT. New Gerrit change created: https://git.eclipse.org/r/114275 Gerrit change https://git.eclipse.org/r/114275 was merged to [master]. Commit: http://git.eclipse.org/c/jsf/webtools.jsf.git/commit/?id=aac74c7bae98fe513ab3cd1bbe37f516cd25955b |