@NonNls private String generateWarningLabelText(final ValidationResult configurationException) { return "<html><body><b>" + configurationException.getTitle() + ": </b>" + configurationException.getMessage() + "</body></html>"; }
private void updateWarning() { final ValidationResult configurationException = getValidationResult(); if (configurationException != null) { myOutlinePanel.setVisible(true); myWarningLabel.setVisible(true); myWarningLabel.setText(generateWarningLabelText(configurationException)); final Runnable quickFix = configurationException.getQuickFix(); if (quickFix == null) { myFixButton.setVisible(false); } else { myFixButton.setVisible(true); myQuickFix = quickFix; } } else { myOutlinePanel.setVisible(false); myWarningLabel.setVisible(false); myFixButton.setVisible(false); } }
private static ValidationResult conjunctionOf(ValidationResult a, ValidationResult b) { return a.isOk() ? b : a; }