use of com.intellij.openapi.options.ex.SingleConfigurableEditor in project intellij-plugins by JetBrains.
the class KarmaRunConfigurationEditor method updatePreferredWidth.
private void updatePreferredWidth() {
DialogWrapper dialogWrapper = DialogWrapper.findInstance(myRootComponent);
if (dialogWrapper instanceof SingleConfigurableEditor) {
// dialog for single run configuration
myNodeInterpreterField.setPreferredWidthToFitText();
myKarmaPackageField.setPreferredWidthToFitText();
SwingHelper.setPreferredWidthToFitText(myConfigPathField);
ApplicationManager.getApplication().invokeLater(() -> SwingHelper.adjustDialogSizeToFitPreferredSize(dialogWrapper), ModalityState.any());
}
}
Aggregations