Author: scabanovich
Date: 2009-08-21 09:08:48 -0400 (Fri, 21 Aug 2009)
New Revision: 17220
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/AbstractWebProjectTemplate.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4798
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/AbstractWebProjectTemplate.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/AbstractWebProjectTemplate.java 2009-08-21
13:05:13 UTC (rev 17219)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/AbstractWebProjectTemplate.java 2009-08-21
13:08:48 UTC (rev 17220)
@@ -198,8 +198,11 @@
public void removePageTemplate(String name) {
File dir = new File(getPageTemplatesLocation());
- dir = new File(dir, getNatureDir());
File target = new File(dir, name);
+ if(!target.isFile()) {
+ dir = new File(dir, getNatureDir());
+ }
+ target = new File(dir, name);
if(target.isFile()) {
if(!confirm(NLS.bind(WebUIMessages.YOU_WANT_TO_DELETE_PAGE_TEMPLATE,name))) return;
target.delete();