Search in sources :

Example 6 with SingleConfigurableEditor

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());
    }
}
Also used : SingleConfigurableEditor(com.intellij.openapi.options.ex.SingleConfigurableEditor) DialogWrapper(com.intellij.openapi.ui.DialogWrapper)

Aggregations

SingleConfigurableEditor (com.intellij.openapi.options.ex.SingleConfigurableEditor)6 Project (com.intellij.openapi.project.Project)2 DebugProcessImpl (com.intellij.debugger.engine.DebugProcessImpl)1 JavaValue (com.intellij.debugger.engine.JavaValue)1 DebuggerContextCommandImpl (com.intellij.debugger.engine.events.DebuggerContextCommandImpl)1 DebuggerContextImpl (com.intellij.debugger.impl.DebuggerContextImpl)1 NodeRendererSettings (com.intellij.debugger.settings.NodeRendererSettings)1 UserRenderersConfigurable (com.intellij.debugger.settings.UserRenderersConfigurable)1 NodeRenderer (com.intellij.debugger.ui.tree.render.NodeRenderer)1 RunConfiguration (com.intellij.execution.configurations.RunConfiguration)1 ConfigurableBase (com.intellij.openapi.options.ConfigurableBase)1 DialogWrapper (com.intellij.openapi.ui.DialogWrapper)1 Ref (com.intellij.openapi.util.Ref)1 SingleRemoteServerConfigurable (com.intellij.remoteServer.impl.configuration.SingleRemoteServerConfigurable)1 Consumer (com.intellij.util.Consumer)1 Type (com.sun.jdi.Type)1 NotNull (org.jetbrains.annotations.NotNull)1