Author: mareshkau
Date: 2010-11-01 07:47:47 -0400 (Mon, 01 Nov 2010)
New Revision: 26155
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/action/JSF2ResourcesFolderProposal.java
Log:
https://jira.jboss.org/browse/JBIDE-6685
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/action/JSF2ResourcesFolderProposal.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/action/JSF2ResourcesFolderProposal.java 2010-11-01
11:15:38 UTC (rev 26154)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/action/JSF2ResourcesFolderProposal.java 2010-11-01
11:47:47 UTC (rev 26155)
@@ -50,8 +50,12 @@
}
public String getDisplayString() {
+ String folderName="";
+ if(componentPath!=null){
+ folderName=componentPath.replaceFirst(JSF2ResourceUtil.JSF2_URI_PREFIX,
"").trim();
+ }
return MessageFormat.format(JSFUIMessages.Create_JSF_2_Resources_Folder,
- JSF2ResourceUtil.calculateProjectRelativeJSF2ResourceProposal(validateResource.getProject()),URL);
+ JSF2ResourceUtil.calculateProjectRelativeJSF2ResourceProposal(validateResource.getProject())+folderName,URL);
}
@Override