void (ValidationResult configurationException) { if (configurationException != null) { mySeparator.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; } myValidationPanel.setVisible(true); Window window = ComponentUtil.getWindow(myWholePanel); if (!myWindowResizedOnce && window != null && window.isShowing()) { Dimension size = window.getSize(); window.setSize(size.width, size.height + myValidationPanel.getPreferredSize().height); myWindowResizedOnce = true; } } else { mySeparator.setVisible(false); myWarningLabel.setVisible(false); myFixButton.setVisible(false); myValidationPanel.setVisible(false); } }