Package org.eclipse.jface.wizard

Examples of org.eclipse.jface.wizard.IWizard


    /**
     * {@inheritDoc}
     */
    public void run()
    {
        IWizard wizard = null;

        if ( this.type == TYPE_IMPORT_LDIF )
        {
            if ( getEntry() != null )
            {
View Full Code Here


    GridDataFactory.fillDefaults().grab(true, true).applyTo(servicesViewer.getControl());

    Action addServiceAction = new Action(Messages.COMMONTXT_ADD_SERVICE, CloudFoundryImages.NEW_SERVICE) {
      @Override
      public void run() {
        IWizard wizard = new CloudFoundryServiceWizard(cloudServer);
        WizardDialog dialog = new WizardDialog(getSection().getShell(), wizard);
        dialog.setBlockOnOpen(true);
        dialog.open();
      }
    };
View Full Code Here

          .findWizard(id);
    }
    try {
      // Then if we have a wizard, open it.
      if (descriptor != null) {
        IWizard wizard = descriptor.createWizard();
        WizardDialog wd = new WizardDialog(PlatformUI.getWorkbench()
            .getDisplay().getActiveShell(), wizard);
        wd.setTitle(wizard.getWindowTitle());
        wd.open();
      }
    } catch (CoreException e) {
      e.printStackTrace();
    }
View Full Code Here

  }

  public void run() {
    Display.getDefault().asyncExec(new Runnable() {
      public void run() {
        IWizard wizard = new NewConnectionWizard();
        WizardDialog d = new WizardDialog(new Shell(), wizard);
        d.open();
      }
    } );
  }
View Full Code Here

    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.horizontalSpan = 2;
    gridData.grabExcessHorizontalSpace = true;
    captionText.setLayoutData(gridData);
    final IWizard wizard = getWizard();
    captionText.addKeyListener( new KeyListener() {
     
      @Override
      public void keyReleased(KeyEvent e) {
        setErrorMessage();
        wizard.getContainer().updateButtons(); // updates
      }
     
      @Override
      public void keyPressed(KeyEvent e) {
View Full Code Here

     * @see emffit_controls.wizards.pages.AbstractLinkWizardPage#createRadioButtonSelectionListener()
     */
    @Override
    protected SelectionListener createRadioButtonSelectionListener() {
     
   final IWizard wizard = getWizard();
    return new SelectionListener(){

      @Override
      public void widgetDefaultSelected(SelectionEvent e) {}

      @Override
      public void widgetSelected(SelectionEvent e) {
         wizard.getContainer().updateButtons();
      }
    };
    }
View Full Code Here

    openLink.setText("open...");
    gridData = new GridData();
    gridData.horizontalSpan = 5;
    gridData.horizontalAlignment = SWT.FILL;
    openLink.setLayoutData(gridData);
    final IWizard wizard = getWizard();
    foundModelElementsTree.addSelectionListener(new SelectionListener() {

      @Override
      public void widgetSelected(SelectionEvent e) {

        wizard.getContainer().updateButtons(); // updates
        // wizard.canFinish()
        openLink.setTarget(getSelectedModelElement());

        displayHits(getSelectedResultItem());
        setErrorMsg();
View Full Code Here

   
    captionText.setText(linkCaption);
    captionText
        .setToolTipText("Please enter here the caption for the link.");
   
    final IWizard wizard = getWizard();

    captionText.addKeyListener( new KeyListener() {
     
      @Override
      public void keyReleased(KeyEvent e) {
        if (captionText.getText() == null || captionText.getText()== "") {
          setErrorMessage("Please enter a caption for the link.");
        } else {
          setErrorMessage(null);
        }
        wizard.getContainer().updateButtons();
       
      }
     
      @Override
      public void keyPressed(KeyEvent e) {}
View Full Code Here

    * creates a SelectionListener for the radio group to update the buttons
* @return
*/
protected SelectionListener createRadioButtonSelectionListener() {
     
   final IWizard wizard = getWizard();
    return new SelectionListener(){

      @Override
      public void widgetDefaultSelected(SelectionEvent e) {}

      @Override
      public void widgetSelected(SelectionEvent e) {
         wizard.getContainer().updateButtons();
      }   
    };
    }
View Full Code Here

    gridData.verticalSpan = 1;
    gridData.grabExcessVerticalSpace = true;
    layoutList.setLayoutData(gridData);
   
   
    final IWizard wizard = getWizard();
    layoutList.addSelectionListener(new SelectionListener() {

      @Override
      public void widgetSelected(SelectionEvent e) {

        wizard.getContainer().updateButtons(); // updates
        // wizard.canFinish()

      }

      @Override
View Full Code Here

TOP

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

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.