&& url.endsWith(IFileFolderConstants.DOT
+ IFileFolderConstants.EXT_JSP)) {
String urlPattern = ""; //$NON-NLS-1$
IVirtualResource[] resources = ComponentCore
.createResources(openedFile);
IVirtualComponent component = null;
if (resources[0] != null) {
component = resources[0].getComponent();
}
if (component != null) {
urlPattern = WebDeployableArtifactUtil.getServletMapping(
openedFile.getProject(), true, FACES_SERVLET_NAME,
component.getName());
}
if (urlPattern.lastIndexOf(IFileFolderConstants.DOT) != -1) {
String extension = urlPattern.substring(urlPattern
.lastIndexOf(IFileFolderConstants.DOT));
url = url.substring(0, url.lastIndexOf(IFileFolderConstants.DOT