Author: akazakov
Date: 2007-11-14 06:20:12 -0500 (Wed, 14 Nov 2007)
New Revision: 4898
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizardPage1.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1297 Button "Browse" in "New Seam
Entity" wizard doesn't work
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizardPage1.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizardPage1.java 2007-11-14
11:19:16 UTC (rev 4897)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizardPage1.java 2007-11-14
11:20:12 UTC (rev 4898)
@@ -47,10 +47,15 @@
protected void createEditors() {
addEditor(SeamWizardFactory.createSeamProjectSelectionFieldEditor(SeamWizardUtils.getRootSeamProjectName(initialSelection)));
addEditor(SeamWizardFactory.createSeamEntityClasNameFieldEditor());
- String packageName =
getDefaultPackageName(SeamWizardUtils.getRootSeamProjectName(initialSelection));
+
+ String selectedProject = SeamWizardUtils.getRootSeamProjectName(initialSelection);
+ String packageName = getDefaultPackageName(selectedProject);
+
addEditor(SeamWizardFactory.createSeamJavaPackageSelectionFieldEditor(packageName));
addEditor(SeamWizardFactory.createSeamMasterPageNameFieldEditor());
addEditor(SeamWizardFactory.createSeamPageNameFieldEditor());
+
+ setSeamProjectNameData(selectedProject);
}
@Override