Examples of WizardPage


Examples of org.eclipse.jface.wizard.WizardPage

       
        return chooseExecutableFilesPage;
    }
   
    private WizardPage createProjectPropertiesPage() {
      WizardPage projectPropertiesPage =
        createPage(PROJECT_PROPERTIES_PAGE_NUMBER);
        projectPropertiesPage.setTitle("Project Properties");
        projectPropertiesPage.setDescription("Enter Project Properties");
       
        return projectPropertiesPage;
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardPage

    final boolean finished = super.performFinish();
    if (finished) {
      final IJavaElement ce = getCreatedElement();
      final IPath p = ce.getResource().getProjectRelativePath().removeFileExtension().addFileExtension("html").makeAbsolute();
      try {
        WizardPage nhtwp = (WizardPage) htmlWiz.getPage("NewHTMLTemplatesWizardPage");
        IFile file = ce.getJavaProject().getProject().getFile(p);

        // this is evil, but the NewHTMLTemplatesWizardPage doesn't allow to get the selected template
        final Method m = nhtwp.getClass().getDeclaredMethod("getTemplateString", (Class<?>[]) null);
        m.setAccessible(true);
        final String templateString = (String) m.invoke(nhtwp, (Object[]) null);

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardPage

    final boolean finished = super.performFinish();
    if (finished) {
      final IJavaElement ce = getCreatedElement();
      final IPath p = ce.getResource().getProjectRelativePath().removeFileExtension().addFileExtension("html").makeAbsolute();
      try {
        WizardPage nhtwp = (WizardPage) htmlWiz.getPage("NewHTMLTemplatesWizardPage");
        IFile file = ce.getJavaProject().getProject().getFile(p);

        // this is evil, but the NewHTMLTemplatesWizardPage doesn't allow to get the selected template
        final Method m = nhtwp.getClass().getDeclaredMethod("getTemplateString", (Class<?>[]) null);
        m.setAccessible(true);
        final String templateString = (String) m.invoke(nhtwp, (Object[]) null);

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardPage

    addPage(fNewXMLTemplatesWizardPage);
  }


  public IWizardPage getStartingPage() {
    WizardPage result = null;
    if (startPage != null) {
      result = startPage;
    }
    else {
      result = newFilePage;
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardPage

    return result;
  }


  public IWizardPage getNextPage(IWizardPage currentPage) {
    WizardPage nextPage = null;
    if (currentPage == startPage) {
      nextPage = newFilePage;
    }
    else if (currentPage == newFilePage) {
      if (generator.getGrammarURI() == null)
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardPage

    this.fSelection = selection;
  }

  public boolean performFinish() {
    boolean result = true;
    WizardPage currentPage = (WizardPage) getContainer().getCurrentPage();
    if (currentPage != null) {
      result = currentPage.isPageComplete();
    }
    return result;
  }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardPage

    }

    public void addPages(Wizard wizard) {
        String helpContextId = null; // TODO: should provide, see
                                     // IHelpContextIds#TEMPLATE_HELLO_WORLD
        WizardPage page = createPage(0, helpContextId);
        page.setTitle(getWizardPageTitle());
        page.setDescription(getWizardPageDescription());
        wizard.addPage(page);
        markPagesAdded();
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardPage

    public WizardPage getRepositorySearchPage() throws CoreException {
      if (repositorySearchPageELement == null)
        return null;
      Object object = repositorySearchPageELement
          .createExecutableExtension("class"); //$NON-NLS-1$
      WizardPage page = null;
      if (object instanceof WizardPage
          && object instanceof IRepositorySearchResult)
        page = (WizardPage) object;
      return page;
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.WizardPage

    else
      return getWizardPage(repositoryImport);
  }

  private WizardPage getWizardPage(CloneSourceProvider repositoryImport) {
    WizardPage nextPage;
    nextPage = resolvedWizardPages.get(repositoryImport);
    if (nextPage == null) {
      try {
        nextPage = repositoryImport.getRepositorySearchPage();
      } catch (CoreException e) {
        Activator.error(e.getLocalizedMessage(), e);
      }
      if (nextPage != null) {
        nextPage.setWizard(getWizard());
        resolvedWizardPages.put(repositoryImport, nextPage);
      }
    }
    return nextPage;
  }
View Full Code Here

Examples of org.jitterbit.application.ui.wizard.WizardPage

        if (location == null) {
            // TODO: This should never happen since the Next Page button
            // will be disabled if a location has not been selected. But
            // just in case, maybe we should deal with this...
        }
        WizardPage page = getCachedNextPage(location);
        if (page == null) {
            page = createNewNextPage(location);
        } else if (page instanceof ManualSqlStatementPage) {
            transferManualSqlStatementIfNeeded((ManualSqlStatementPage) page);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.