Author: Grid.Qian
Date: 2008-10-24 04:05:17 -0400 (Fri, 24 Oct 2008)
New Revision: 11136
Modified:
trunk/jbpm/plugins/org.jboss.tools.jbpm.convert/src/org/jboss/tools/jbpm/convert/bpmnto/wizard/BpmnToWizard.java
trunk/jbpm/plugins/org.jboss.tools.jbpm.convert/src/org/jboss/tools/jbpm/convert/bpmnto/wizard/ErrorMessagesPage.java
Log:
JBIDE-2974:the Finish button should be disable after choose some bpmn pools in the wizard
page
Modified:
trunk/jbpm/plugins/org.jboss.tools.jbpm.convert/src/org/jboss/tools/jbpm/convert/bpmnto/wizard/BpmnToWizard.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.jbpm.convert/src/org/jboss/tools/jbpm/convert/bpmnto/wizard/BpmnToWizard.java 2008-10-24
07:25:01 UTC (rev 11135)
+++
trunk/jbpm/plugins/org.jboss.tools.jbpm.convert/src/org/jboss/tools/jbpm/convert/bpmnto/wizard/BpmnToWizard.java 2008-10-24
08:05:17 UTC (rev 11136)
@@ -129,8 +129,10 @@
public IWizardPage getNextPage(IWizardPage page) {
if (page.getName()
- .equals(B2JMessages.Bpmn_Translate_Message_WizardPage_Name)) {
+ .equals(B2JMessages.Bpmn_Pool_Choose_WizardPage_Name)) {
errorList = translateBpmnToStrings();
+ errorPage.setPageComplete(true);
+
if (errorList.size() == 0) {
return locationPage;
}
Modified:
trunk/jbpm/plugins/org.jboss.tools.jbpm.convert/src/org/jboss/tools/jbpm/convert/bpmnto/wizard/ErrorMessagesPage.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.jbpm.convert/src/org/jboss/tools/jbpm/convert/bpmnto/wizard/ErrorMessagesPage.java 2008-10-24
07:25:01 UTC (rev 11135)
+++
trunk/jbpm/plugins/org.jboss.tools.jbpm.convert/src/org/jboss/tools/jbpm/convert/bpmnto/wizard/ErrorMessagesPage.java 2008-10-24
08:05:17 UTC (rev 11136)
@@ -31,6 +31,7 @@
private TableViewer listViewer;
+
protected ErrorMessagesPage(String pageName, String title, String description) {
super(pageName);
this.setDescription(description);
@@ -43,7 +44,7 @@
createListTitleArea(composite);
createListViewer(composite);
setControl(composite);
-
+ initializePage();
}
private Label createListTitleArea(Composite composite) {
@@ -78,11 +79,10 @@
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
return composite;
}
-
- public boolean isPageComplete() {
- return true;
+
+ private void initializePage() {
+ this.setPageComplete(false);
}
-
public TableViewer getListViewer() {
return listViewer;