Package org.eclipse.jface.wizard

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


    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

    addPage(fNewXMLTemplatesWizardPage);
  }


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

    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

    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

    }

    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

    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

    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

    }

    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

    addOption("containerType", "service.exported.configs", "ecf.generic.server", 0);
    addOption("containerId", "ECF Generic Server URL", "ecftcp://localhost:3282/server", 0);
  }

  public void addPages(Wizard wizard) {
    WizardPage page = createPage(0, "org.eclipse.pde.doc.user.rcp_mail");
    page.setTitle("Hello Remote Service Host");
    page.setDescription("This template creates and exports a Hello remote service");
    wizard.addPage(page);
    markPagesAdded();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.wizard.WizardPage

Copyright © 2018 www.massapicom. 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.