@Override protected void updateButtonsEnableState(IStatus status) { super.updateButtonsEnableState(status); getButton(APPLY_BUTTON).setEnabled(!status.matches(IStatus.ERROR) && somethingChanged); }
@Override protected void updateButtonsEnableState(IStatus status) { super.updateButtonsEnableState(status); getButton(APPLY_BUTTON).setEnabled(!status.matches(IStatus.ERROR) && somethingChanged); }
/** * Update the dialog's status line to reflect the given status. It is safe * to call this method before the dialog has been opened. * * @param status * the status to set */ protected void updateStatus(IStatus status) { fLastStatus = status; if (fStatusLine != null && !fStatusLine.isDisposed()) { updateButtonsEnableState(status); fStatusLine.setErrorStatus(status); } }
/** * Update the dialog's status line to reflect the given status. It is safe * to call this method before the dialog has been opened. * * @param status * the status to set */ protected void updateStatus(IStatus status) { fLastStatus = status; if (fStatusLine != null && !fStatusLine.isDisposed()) { updateButtonsEnableState(status); fStatusLine.setErrorStatus(status); } }
/** * Update the dialog's status line to reflect the given status. It is safe * to call this method before the dialog has been opened. * * @param status * the status to set */ protected void updateStatus(IStatus status) { fLastStatus = status; if (fStatusLine != null && !fStatusLine.isDisposed()) { updateButtonsEnableState(status); fStatusLine.setErrorStatus(status); } }
protected void updateButtonsEnableState(IStatus status) { super.updateButtonsEnableState(status); if (fApplyButton != null && !fApplyButton.isDisposed()) { fApplyButton.setEnabled(hasChanges() && !status.matches(IStatus.ERROR)); } }
@Override protected void updateButtonsEnableState(IStatus status) { super.updateButtonsEnableState(status); if (fApplyButton != null && !fApplyButton.isDisposed()) { fApplyButton.setEnabled(hasChanges() && !status.matches(IStatus.ERROR)); } if (fSaveButton != null && !fSaveButton.isDisposed()) { fSaveButton.setEnabled(!validateProfileName().matches(IStatus.ERROR)); } }
@Override protected void updateButtonsEnableState(IStatus status) { super.updateButtonsEnableState(status); if (fApplyButton != null && !fApplyButton.isDisposed()) { fApplyButton.setEnabled(hasChanges() && !status.matches(IStatus.ERROR)); } if (fSaveButton != null && !fSaveButton.isDisposed()) { fSaveButton.setEnabled(!validateProfileName().matches(IStatus.ERROR)); } }
protected void updateButtonsEnableState(IStatus status) { super.updateButtonsEnableState(status); if (fApplyButton != null && !fApplyButton.isDisposed()) { fApplyButton.setEnabled(hasChanges() && !status.matches(IStatus.ERROR)); } if (fSaveButton != null && !fSaveButton.isDisposed()) { fSaveButton.setEnabled(!validateProfileName().matches(IStatus.ERROR)); } }