Author: dgolovin
Date: 2007-10-16 17:38:25 -0400 (Tue, 16 Oct 2007)
New Revision: 4271
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetProjectCreationDataModelProvider.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1099
default initialization is added for PROJECT_NAME to avoid exception during during seam
wizard initialization
Bugzilla issue created for WebTools
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206541
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetProjectCreationDataModelProvider.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetProjectCreationDataModelProvider.java 2007-10-16
20:17:53 UTC (rev 4270)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetProjectCreationDataModelProvider.java 2007-10-16
21:38:25 UTC (rev 4271)
@@ -38,6 +38,16 @@
public class SeamFacetProjectCreationDataModelProvider extends
WebFacetProjectCreationDataModelProvider {
+ @Override
+ public Object getDefaultProperty(String propertyName) {
+ if(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME.equals(propertyName)) {
+ // Any not empty string should be returned by default
+ // to workaround
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206541
+ return "dummy";
+ }
+ return super.getDefaultProperty(propertyName);
+ }
+
public static IStatus OK_STATUS = new Status(IStatus.OK, SeamCorePlugin.PLUGIN_ID, 0,
"OK", null); //$NON-NLS-1$ //$NON-NLS-2$
public SeamFacetProjectCreationDataModelProvider() {