Author: mareshkau
Date: 2010-08-25 08:49:16 -0400 (Wed, 25 Aug 2010)
New Revision: 24421
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/newfile/NewXHTMLWizard.java
Log:
https://jira.jboss.org/browse/JBIDE-6687
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/newfile/NewXHTMLWizard.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/newfile/NewXHTMLWizard.java 2010-08-25
12:45:11 UTC (rev 24420)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/newfile/NewXHTMLWizard.java 2010-08-25
12:49:16 UTC (rev 24421)
@@ -126,7 +126,9 @@
try {
NewFileContextEx newFileContext = newXHTMLFileWizard.getFileContext();
CreateJSPFileSupport jspFileSupport =
(CreateJSPFileSupport)newFileContext.getSupport();
- templateString = jspFileSupport.addTaglibs(templateString);
+ if(jspFileSupport.getAttributeValue(1, "taglibs").length()>0){
+ templateString = jspFileSupport.addTaglibs(templateString);
+ }
} catch (IOException ex) {
WebUiPlugin.getDefault().logWarning("Problems with adding taglibs",ex);
//$NON-NLS-1$
}