Author: scabanovich
Date: 2007-12-17 11:17:01 -0500 (Mon, 17 Dec 2007)
New Revision: 5345
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebProjectWizardPage.java
Log:
JBIDE-1498
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebProjectWizardPage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebProjectWizardPage.java 2007-12-17
16:16:43 UTC (rev 5344)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebProjectWizardPage.java 2007-12-17
16:17:01 UTC (rev 5345)
@@ -47,6 +47,7 @@
import org.jboss.tools.jst.web.context.ImportWebDirProjectContext;
import org.jboss.tools.jst.web.messages.xpl.WebUIMessages;
import org.jboss.tools.jst.web.ui.WebUiPlugin;
+import org.w3c.dom.Element;
public class ImportWebProjectWizardPage extends WizardPage {
private ImportWebDirProjectContext context;
@@ -222,7 +223,13 @@
}
if(projectFile != null) {
- appName = XMLUtil.getElement(projectFile).getAttribute("APPLICATION_NAME");
//$NON-NLS-1$
+ Element element = XMLUtil.getElement(projectFile);
+ if(element.hasAttribute("APPLICATION_NAME")) { //$NON-NLS-1$
+ appName = element.getAttribute("APPLICATION_NAME"); //$NON-NLS-1$
+ } else if(element.hasAttribute("application-name")) { //$NON-NLS-1$
+ appName = element.getAttribute("application-name"); //$NON-NLS-1$
+ }
+
context.setApplicationName(appName);
}
}
Show replies by date