Examples of IWizardContainer


Examples of org.eclipse.jface.wizard.IWizardContainer

            }
        });
    }

    private void updateUi() {
        IWizardContainer container = getContainer();
        if (container != null) {
            container.updateButtons();
            container.updateMessage();
        }
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer

            }
        });
    }

    private void updateUi() {
        IWizardContainer container = getContainer();
        if (container != null) {
            container.updateButtons();
            container.updateMessage();
        }
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer

            BrowserCommonConstants.IMG_ENTRY_WIZARD ) );
        setPageComplete( false );

        this.wizard = wizard;

        IWizardContainer container = wizard.getContainer();
        if ( container instanceof WizardDialog )
        {
            WizardDialog dialog = ( WizardDialog ) container;
            dialog.addPageChangedListener( new IPageChangedListener()
            {
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer

     * @throws InvocationTargetException
     * @throws InterruptedException
     */
    private void run( final IRunnableWithProgress runnable ) throws InvocationTargetException,
            InterruptedException {
        IWizardContainer wizardContainer = getContainer();
        if (wizardContainer != null && Display.getCurrent() != null) {
            wizardContainer.run(false, true, new IRunnableWithProgress(){

                public void run( IProgressMonitor monitor ) throws InvocationTargetException,
                        InterruptedException {
                    runnable.run(monitor);
                }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer

       
    viewer = new WizardViewer(comp, SWT.SINGLE | SWT.BORDER);
    viewer.setInput(descriptorList.toArray());
    viewer.addDoubleClickListener(new IDoubleClickListener() {
      public void doubleClick(DoubleClickEvent event) {
        IWizardContainer container = getContainer();
        if (container instanceof Dialog) {
          Dialog d = (Dialog) container;
          Button button = findButton(d.buttonBar,
              IDialogConstants.NEXT_ID);
          if (button != null)
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer

  }
 
  @Override
  public void createRepos(IProject project) {
//    try {
      IWizardContainer container = getContainer();
      File wexFile = this.wexSelectionPage.getWexFile();
      CreateRepository creator = new CreateRepository(project, project.getName());
      creator.run(new NullProgressMonitor()) ;
      ImportWex importer = new ImportWex(project, wexFile);
      //container.run(true, true, importer);
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer


  @Override
  public boolean performFinish() {
    try {
      IWizardContainer container = getContainer();
      String name = projectCreationPage.getProjectName();
      URI location = null;
      if (!projectCreationPage.useDefaults()) {
        location = projectCreationPage.getLocationURI();
      } // else location == null

      String forteLogger = null;
      String repository = null;
      String workspace = null;
      String workspacePassword = null;
      if (projectPropertyPage != null){
        forteLogger = projectPropertyPage.getForteLogger();
        repository = projectPropertyPage.getForteRepository();
        workspace = projectPropertyPage.getForteWorkspace();
        workspacePassword = projectPropertyPage.getForteWorkspacePassword();
      }
      IProject project = ToolProjectSupport.createProject(name, location, forteLogger, repository, workspace, workspacePassword);
     
      project.refreshLocal(IResource.DEPTH_ZERO, null);
      createRepos(project);
      RepositoryExport exporter = new RepositoryExport(project);
      container.run(true, true, exporter);

      return true
    } catch (InvocationTargetException e) {
      ToolPlugin.showError("Error importing from Tool repository",e);
    } catch (InterruptedException e) {
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer

    }
    String forteLogger = _projectPropertyPage.getForteLogger();
    String repository = _projectPropertyPage.getForteRepository();
    String workspace = _projectPropertyPage.getForteWorkspace();
    String workspacePassword = _projectPropertyPage.getForteWorkspacePassword();
    IWizardContainer container = getContainer();

    try {

      ProjectCreationJob creator = new ProjectCreationJob(_configurationElement,
          name,
          location,
          forteLogger,
          repository,
          workspace,
          workspacePassword);
      container.run(true, true, creator);
      return true;
    } catch (InvocationTargetException e) {
      ToolPlugin.showError("Error Creating Tool project",e);
    } catch (InterruptedException e) {
      ToolPlugin.showError("Error Creating Tool project",e);
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer

    addPage(_pageOne);
  }
  @Override
  public boolean performFinish() {
    try {
      final IWizardContainer container = getContainer();
      container.run(true, true, new RepositorySync(_pageOne.getProject()));
    } catch (InvocationTargetException e) {
      ToolPlugin.showError("Error exporting to Tool repository",e);
    } catch (InterruptedException e) {
      ToolPlugin.showError("Error exporting to Tool repository",e);
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardContainer

        }

        descImageCanvas.getParent().layout(true);
        filteredTree.getViewer().getTree().showSelection();

        IWizardContainer container = page.getWizard().getContainer();
        if (container instanceof IWizardContainer2) {
            ((IWizardContainer2) container).updateSize();
        }
    }
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.