use of com.intellij.openapi.ui.DialogWrapper in project intellij-community by JetBrains.
the class MembersBasedViewSwingImpl method showConflictsDialog.
@Override
public boolean showConflictsDialog(@NotNull final MultiMap<PyClass, PyMemberInfo<?>> duplicatesConflict, @NotNull final Collection<PyMemberInfo<?>> dependenciesConflicts) {
Preconditions.checkArgument(!(duplicatesConflict.isEmpty() && dependenciesConflicts.isEmpty()), "Can't show dialog for empty conflicts");
final DialogWrapper conflictsDialog = new MembersConflictDialog(myProject, duplicatesConflict, dependenciesConflicts);
return conflictsDialog.showAndGet();
}
use of com.intellij.openapi.ui.DialogWrapper 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