Example usage for org.eclipse.jface.wizard IWizard needsPreviousAndNextButtons

List of usage examples for org.eclipse.jface.wizard IWizard needsPreviousAndNextButtons

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard IWizard needsPreviousAndNextButtons.

Prototype

boolean needsPreviousAndNextButtons();

Source Link

Document

Returns whether this wizard needs Previous and Next buttons.

Usage

From source file:org.eclipse.jst.jsf.common.ui.internal.dialogs.CommonWizardDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    super.createButtonsForButtonBar(parent);

    IWizard wizard = getWizard();
    if (!wizard.needsPreviousAndNextButtons()) {
        getButton(IDialogConstants.FINISH_ID).setText(IDialogConstants.OK_LABEL);
    }/*  w w  w.  jav a  2  s .  c  om*/
}