@Override
  public boolean canFinish() {
    IWizardPage page = getFirstPage();
    IWizardPage lastPage = null;
    while (page != null) {
      if (!page.isPageComplete()) return false;
      lastPage = page;
      page = page.getNextPage();
      if (lastPage == page)
        throw new IllegalStateException(
            "Page \""
                + page.getName()
                + "\" returned itself as next page!"); //$NON-NLS-1$ //$NON-NLS-2$
    }
    if (!(lastPage instanceof IDynamicPathWizardPage)) return true;
    if (lastPage == null
        || (lastPage instanceof IDynamicPathWizardPage
            && ((IDynamicPathWizardPage) lastPage).canBeLastPage())) return true;
    else return false;

    //		if (!getWizardEntryPage().isPageComplete())
    //		return false;

    //		if (dynamicWizardPages.size() > 0) {
    //		for (int i = 0; i < dynamicWizardPages.size(); i++) {
    //		if (!((IWizardPage) dynamicWizardPages.get(i)).isPageComplete())
    //		return false;
    //		}
    //		return true; // no page is incomplete
    //		}
    //		else {
    //		return true; // only wizardEntryPage matters
    //		}
  }
 @Override
 public boolean canFinish() {
   IWizardPage currentPage = getContainer().getCurrentPage();
   if (currentPage.getName().equals(PreviewPatchPage2.PREVIEWPATCHPAGE_NAME)) {
     return currentPage.isPageComplete();
   }
   return super.canFinish();
 }
 @Override
 public boolean canFinish() {
   boolean canFinish = super.canFinish();
   boolean additionPageAreCompleted = true;
   for (IWizardPage page : additionalPages) {
     additionPageAreCompleted = page.isPageComplete();
     if (!additionPageAreCompleted) {
       break;
     }
   }
   return canFinish && additionPageAreCompleted;
 }
 /**
  * @see org.eclipse.jface.wizard.Wizard#canFinish()
  * @since 4.0
  */
 @Override
 public boolean canFinish() {
   boolean canFinish = false;
   IWizardPage[] pages = this.getPages();
   // Can finish if all pages are complete
   IWizardPage page1 = pages[0];
   if (page1.isPageComplete()) {
     IWizardPage page2 = null;
     String importType = this.importTextMainPage.getImportType();
     for (int i = 0; i < importers.length; i++) {
       if (importers[i].getType().equals(importType)) {
         page2 = (IWizardPage) importers[i];
         break;
       }
     }
     if (page2 != null && page2.isPageComplete()) {
       canFinish = true;
     }
   }
   return canFinish;
 }
Example #5
0
  public boolean canFinish() {
    if (!validStatus()) return false;

    try {
      if (m_designSession != null) return m_designSession.getNewWizard().canFinish();
      else {
        if (this.nextPage != null) {
          return nextPage.isPageComplete();
        }
        return isPageComplete();
      }
    } catch (OdaException e) {
      return false;
    }
  }
  @Override
  public boolean canFinish() {
    Set<DMDLImporterExporterGenerator> set = namePage.getClassName().keySet();

    IWizardPage[] pages = getPages();
    for (IWizardPage page : pages) {
      if (page instanceof SetImporterExporterMethodPage) {
        if (!set.contains(((SetImporterExporterMethodPage) page).getGenerator())) {
          continue;
        }
      }
      if (!page.isPageComplete()) {
        return false;
      }
    }
    return true;
  }
 /* (non-Javadoc)
  * @see org.eclipse.jdt.internal.debug.ui.jres.VMInstallWizard#canFinish()
  */
 @Override
 public boolean canFinish() {
   IWizardPage currentPage = getContainer().getCurrentPage();
   return currentPage != fTypePage && super.canFinish() && currentPage.isPageComplete();
 }