/** * The <code>PreferencePage</code> implementation of this * <code>IPreferencePage</code> method returns <code>true</code> if the page * is valid. * * @see IPreferencePage#okToLeave() */ @Override public boolean okToLeave() { return isValid(); }
/** * The <code>PreferencePage</code> implementation of this * <code>IPreferencePage</code> method returns <code>true</code> if the page * is valid. * * @see IPreferencePage#okToLeave() */ @Override public boolean okToLeave() { return isValid(); }
/** * The <code>PreferencePage</code> implementation of this * <code>IPreferencePage</code> method returns <code>true</code> * if the page is valid. * @see IPreferencePage#okToLeave() */ public boolean okToLeave() { return isValid(); }
/** * Updates the enabled state of the Apply button to reflect whether * this page is valid. */ protected void updateApplyButton() { if (applyButton != null) { applyButton.setEnabled(isValid()); } }
/** * Updates the enabled state of the Apply button to reflect whether * this page is valid. */ protected void updateApplyButton() { if (applyButton != null) { applyButton.setEnabled(isValid()); } }
/** * Updates the enabled state of the Apply button to reflect whether * this page is valid. */ protected void updateApplyButton() { if (applyButton != null) { applyButton.setEnabled(isValid()); } }
/** * @see IPreferencePageContainer#updateButtons() */ 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); } }
/** * @see IPreferencePageContainer#updateButtons() */ @Override 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); } }
applyButton.setEnabled(isValid()); applyDialogFont(buttonBar); } else {
@Override public boolean isValid() { setMessage(null); setErrorMessage((String) null); if (this.sreArray.isEmpty()) { setMessage(io.sarl.eclipse.launching.dialog.Messages.RuntimeEnvironmentTab_7); } else { final ISREInstall defaultSRE = getDefaultSRE(); if (defaultSRE == null) { setErrorMessage(Messages.SREsPreferencePage_8); return false; } if (!verifyValidity(defaultSRE, true)) { return false; } } return super.isValid(); }
applyButton.setEnabled(isValid());
applyButton.setLayoutData(data); applyButton.addSelectionListener(widgetSelectedAdapter(e -> performApply())); applyButton.setEnabled(isValid());
public boolean isValid() { String compliance = getCurrentCompilerCompliance(); if(!supportsCurrentCompliance(getCurrentDefaultVM(), compliance)) { setMessage(MessageFormat.format(JREMessages.JREsPreferencePage_0, new String[] {compliance}), IMessageProvider.WARNING); fCompliance.setVisible(true); } else { setMessage(null); fCompliance.setVisible(false); } return super.isValid(); }