Author: akazakov
Date: 2008-10-23 09:51:49 -0400 (Thu, 23 Oct 2008)
New Revision: 11109
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2951 Fixed in trunk (cr1) and brunch (beta1)
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2008-10-23
13:38:58 UTC (rev 11108)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2008-10-23
13:51:49 UTC (rev 11109)
@@ -121,6 +121,7 @@
Control control = findGroupByText(getShell(),
SeamUIMessages.SEAM_PROJECT_WIZARD_EAR_MEMBERSHIP);
if (control != null)
control.setVisible(false);
+ firstPage.isPageComplete();
}
private void synchSeamActionModels() {
@@ -286,21 +287,26 @@
*/
@Override
public boolean isPageComplete() {
- if(super.isPageComplete()) {
- IProjectFacet pFacet =
ProjectFacetsManager.getProjectFacet(ISeamFacetDataModelProperties.SEAM_FACET_ID);
- IFacetedProjectWorkingCopy fProject = getFacetedProjectWorkingCopy();
- if(fProject!=null) {
- IProjectFacetVersion seamFacet = fProject.getProjectFacetVersion(pFacet);
- if(seamFacet==null) {
+ boolean pageComplete = super.isPageComplete();
+
+ IProjectFacet pFacet =
ProjectFacetsManager.getProjectFacet(ISeamFacetDataModelProperties.SEAM_FACET_ID);
+ IFacetedProjectWorkingCopy fProject = getFacetedProjectWorkingCopy();
+ if(fProject!=null) {
+ IProjectFacetVersion seamFacet = fProject.getProjectFacetVersion(pFacet);
+ if(seamFacet==null) {
+ if(pageComplete) {
this.setErrorMessage(SeamUIMessages.SEAM_PROJECT_WIZARD_PAGE1_SEAM_FACET_MUST_BE_SPECIFIED);
return false;
- } else {
- this.setErrorMessage(null);
- }
+ }
+ } else {
+ if(pageComplete) {
+ this.setErrorMessage(null);
+ } else
if(SeamUIMessages.SEAM_PROJECT_WIZARD_PAGE1_SEAM_FACET_MUST_BE_SPECIFIED.equals(getErrorMessage()))
{
+ this.setErrorMessage(null);
+ }
}
- return true;
- }
- return false;
+ }
+ return pageComplete;
}
public boolean launchNewServerWizard(Shell shell, IDataModel model, String
serverTypeID) {