Author: dazarov
Date: 2010-10-20 03:47:52 -0400 (Wed, 20 Oct 2010)
New Revision: 25929
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
Log:
https://jira.jboss.org/browse/JBIDE-7219
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2010-10-20
06:50:01 UTC (rev 25928)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2010-10-20
07:47:52 UTC (rev 25929)
@@ -625,8 +625,7 @@
model.setStringProperty(
ISeamFacetDataModelProperties.SEAM_PROJECT_NAME, p);
- if(!visible)
- setCodeGenerationProperties();
+ setCodeGenerationProperties(p);
model.setStringProperty(
ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_NAME,
@@ -654,8 +653,6 @@
private boolean needToShowConnectionProfile = true;
- private boolean visible = false;
-
/**
* It is overridden to fill Code Generation group with the default package
* names
@@ -663,7 +660,6 @@
@Override
public void setVisible(boolean visible) {
if (visible) {
- this.visible = true;
setDefaultSeamRuntime();
boolean jpaFacetAdded = getJpaFacetVersion() != null;
if (jpaFacetAdded == needToShowConnectionProfile){
@@ -688,19 +684,13 @@
/*
* Fills Code Generation group with the default package names.
*/
- private void setCodeGenerationProperties() {
- String p = (String) model
- .getProperty(ISeamFacetDataModelProperties.SEAM_PROJECT_NAME);
-
- if(p == null)
- return;
-
- sessionBeanPkgNameditor.setValue(getSessionPkgName(p));
- entityBeanPkgNameditor.setValue(getEntityPkgName(p));
- testsPkgNameditor.setValue(getTestPkgName(p));
- ejbProjectNameditor.setValue(getEJBProjectName(p));
- earProjectNameditor.setValue(getEARProjectName(p));
- testProjectNameditor.setValue(getTestProjectName(p));
+ private void setCodeGenerationProperties(String seamProjectName) {
+ sessionBeanPkgNameditor.setValue(getSessionPkgName(seamProjectName));
+ entityBeanPkgNameditor.setValue(getEntityPkgName(seamProjectName));
+ testsPkgNameditor.setValue(getTestPkgName(seamProjectName));
+ ejbProjectNameditor.setValue(getEJBProjectName(seamProjectName));
+ earProjectNameditor.setValue(getEARProjectName(seamProjectName));
+ testProjectNameditor.setValue(getTestProjectName(seamProjectName));
}
private String getSessionPkgName(String projectName) {