Example usage for org.eclipse.jface.wizard IWizardContainer updateButtons

List of usage examples for org.eclipse.jface.wizard IWizardContainer updateButtons

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard IWizardContainer updateButtons.

Prototype

public void updateButtons();

Source Link

Document

Adjusts the enable state of the Back, Next, and Finish buttons to reflect the state of the currently active page in this container.

Usage

From source file:com.google.dart.tools.ui.internal.refactoring.WizardPageOptionsHelper.java

License:Open Source License

private void runInUI() {
    IWizard wizard = page.getWizard();/*  ww w .ja  v  a 2s . co m*/
    if (wizard != null) {
        IWizardContainer container = wizard.getContainer();
        if (container != null) {
            page.setPageComplete(optionsStatus);
            container.updateButtons();
        }
    }
}

From source file:com.nextep.datadesigner.vcs.gui.UserCreationWizard.java

License:Open Source License

@Override
public void refreshConnector() {
    super.refreshConnector();
    viewer.refresh();//  w w w.ja  va2s. c  o m
    if (viewer.getInput() instanceof List<?>) {
        final List<?> users = (List<?>) viewer.getInput();
        if (users.size() < 2) {
            setErrorMessage(VCSUIMessages.getString("userNotCreatedError")); //$NON-NLS-1$
        } else {
            setErrorMessage(null);
            final IWizardContainer container = getContainer();
            if (container != null) {
                container.updateButtons();
            }
        }
    }
}

From source file:com.siteview.mde.internal.ui.nls.InternationalizeWizardLocalePage.java

License:Open Source License

public InternationalizeWizardLocalePage(InternationalizeModelTable modelTable, String pageName) {
    super(pageName);
    setTitle(MDEUIMessages.InternationalizeWizard_LocalePage_pageTitle);
    setDescription(MDEUIMessages.InternationalizeWizard_LocalePage_pageDescription);

    MDEPlugin.getDefault().getLabelProvider().connect(this);
    MDECore.getDefault().getModelManager().getExternalModelManager().addModelProviderListener(this);

    fInternationalizeModelTable = modelTable;
    fSelected = new HashMap();

    IWizardContainer container = getContainer();
    if (container != null)
        container.updateButtons();
}

From source file:com.siteview.mde.internal.ui.nls.InternationalizeWizardPluginPage.java

License:Open Source License

public InternationalizeWizardPluginPage(InternationalizeModelTable modelTable, String pageName) {

    super(pageName);
    setTitle(MDEUIMessages.InternationalizeWizard_PluginPage_pageTitle);
    setDescription(MDEUIMessages.InternationalizeWizard_PluginPage_pageDescription);

    MDEPlugin.getDefault().getLabelProvider().connect(this);
    MDECore.getDefault().getModelManager().getExternalModelManager().addModelProviderListener(this);

    fInternationalizeModelTable = modelTable;

    IWizardContainer container = getContainer();
    if (container != null)
        container.updateButtons();
}

From source file:org.apache.directory.studio.connection.ui.wizards.NewConnectionWizardPage.java

License:Apache License

/**
 * @see org.apache.directory.studio.connection.ui.ConnectionParameterPageModifyListener#connectionParameterPageModified()
 *//*from  w w w  .  j  av  a  2 s .  c o  m*/
public void connectionParameterPageModified() {
    //only one of the messages can be shown
    //warning messages are more important 
    //than info messages
    if (page.getMessage() != null) {
        setMessage(page.getMessage());
    } else if (page.getInfoMessage() != null) {
        setMessage(page.getInfoMessage());
    } else {
        setMessage(null);
    }

    setErrorMessage(page.getErrorMessage());
    setPageComplete(page.isValid());

    IWizardContainer container = getContainer();

    if ((container != null) && (container.getCurrentPage() != null)) {
        container.updateButtons();
    }
}

From source file:org.bbaw.pdr.ae.export.swt.FileSelectionGroup.java

License:Open Source License

/**
 * Mark this widget valid. Also make wizardcontainer update its controls, which
 * means that the responsible wizard is made to reevaluate its 
 * {@link IWizard#canFinish()}, which can be overwritten in order to consider
 * the {@link IPdrWidgetStructure#isValid()} status of further widgets involved. 
 *///from   w w  w.j a  v  a 2  s.co  m
private void setValid() {
    isvalid = true;
    this.message = null;
    IWizardContainer wizardContainer = this.wizardPage.getWizard().getContainer();
    try {
        wizardContainer.updateButtons();
        wizardContainer.updateMessage();
    } catch (Exception e) {
        log.log(new Status(IStatus.WARNING, CommonActivator.PLUGIN_ID,
                " Wizard noch nicht bereit? " + wizardPage.getClass().getCanonicalName()));
    }
}

From source file:org.bbaw.pdr.ae.export.swt.FileSelectionGroup.java

License:Open Source License

/**
 * Mark this widget invalid.// ww  w.  j  a  v a  2  s  .  c o  m
 * @param message Complementary error message.
 */
private void setInvalid(String message) {
    //System.out.println("Mark file selector as invalid");
    isvalid = false;
    this.message = message;
    IWizardContainer wizardContainer = this.wizardPage.getWizard().getContainer();
    wizardContainer.updateButtons();
    wizardContainer.updateMessage();
}

From source file:org.bbaw.pdr.ae.export.swt.PdrSelectionPreview.java

License:Open Source License

/**
 * Mark this widget invalid.//  w  w w  .  j  a va  2  s . c o m
 * @param message Complementary error message.
 */
private void setInvalid(String message) {
    if (isvalid)
        if (message != null && !message.equals(this.message)) {
            System.out.println("Mark previewer as invalid");
            isvalid = false;
            this.message = message;
            IWizardContainer wizardContainer = this.wizardPage.getWizard().getContainer();
            wizardContainer.updateButtons();
            wizardContainer.updateMessage();
        }
}

From source file:org.bbaw.pdr.ae.export.swt.PdrSelectionPreview.java

License:Open Source License

/**
 * Mark this widget valid//from www .ja va  2s .  c om
 */
private void setValid() {
    if (!isvalid) {
        isvalid = true;
        this.message = null;
        IWizardContainer wizardContainer = this.wizardPage.getWizard().getContainer();
        wizardContainer.updateButtons();
        wizardContainer.updateMessage();
    }
}

From source file:org.bbaw.pdr.ae.export.swt.preview.PdrSelectionFilterPreview.java

License:Open Source License

/**
 * Mark this widget invalid./*from  w  w w.j a v  a 2 s.co m*/
 * @param message Complementary error message.
 */
private void setInvalid(String message) {
    if (isvalid)
        if (message != null && !message.equals(this.message)) {
            log.log(new Status(IStatus.INFO, CommonActivator.PLUGIN_ID, "Mark previewer as invalid"));
            isvalid = false;
            this.message = message;
            IWizardContainer wizardContainer = this.wizardPage.getWizard().getContainer();
            wizardContainer.updateButtons();
            wizardContainer.updateMessage();
        }
}