Example usage for org.eclipse.jface.preference PreferencePage isValid

List of usage examples for org.eclipse.jface.preference PreferencePage isValid

Introduction

In this page you can find the example usage for org.eclipse.jface.preference PreferencePage isValid.

Prototype

boolean isValid

To view the source code for org.eclipse.jface.preference PreferencePage isValid.

Click Source Link

Document

Valid state for this page; true by default.

Usage

From source file:org.eclipse.team.internal.ui.dialogs.PreferencePageContainerDialog.java

License:Open Source License

/**
 * @see IPreferencePageContainer#updateButtons()
 *///from   w ww.java2s .co  m
public void updateButtons() {
    if (fOkButton != null) {
        boolean isValid = true;
        for (int i = 0; i < pages.length; i++) {
            PreferencePage page = pages[i];
            if (!page.isValid()) {
                isValid = false;
                break;
            }
        }
        fOkButton.setEnabled(isValid);
    }
}