diff --git a/java/compiler/impl/src/com/intellij/compiler/impl/javaCompiler/eclipse/EclipseCompilerConfigurableUi.kt b/java/compiler/impl/src/com/intellij/compiler/impl/javaCompiler/eclipse/EclipseCompilerConfigurableUi.kt index 25facca637c9..c357e0a81d5b 100644 --- a/java/compiler/impl/src/com/intellij/compiler/impl/javaCompiler/eclipse/EclipseCompilerConfigurableUi.kt +++ b/java/compiler/impl/src/com/intellij/compiler/impl/javaCompiler/eclipse/EclipseCompilerConfigurableUi.kt @@ -10,7 +10,10 @@ import com.intellij.openapi.project.Project import com.intellij.openapi.ui.DialogPanel import com.intellij.openapi.ui.TextFieldWithBrowseButton import com.intellij.ui.RawCommandLineEditor -import com.intellij.ui.dsl.builder.* +import com.intellij.ui.dsl.builder.AlignX +import com.intellij.ui.dsl.builder.BottomGap +import com.intellij.ui.dsl.builder.LabelPosition +import com.intellij.ui.dsl.builder.panel import javax.swing.JCheckBox class EclipseCompilerConfigurableUi(project: Project) { @@ -42,16 +45,13 @@ class EclipseCompilerConfigurableUi(project: Project) { } .bottomGap(BottomGap.SMALL) row { - pathToEcjField = textFieldWithBrowseButton() - .align(AlignX.FILL) - .applyToComponent { - addBrowseFolderListener( - JavaCompilerBundle.message("path.to.ecj.compiler.tool"), null, project, - object : FileChooserDescriptor(true, false, true, true, false, false) {}.withFileFilter { file -> - FileTypeRegistry.getInstance().isFileOfType(file, ArchiveFileType.INSTANCE) - } - ) + pathToEcjField = textFieldWithBrowseButton( + JavaCompilerBundle.message("path.to.ecj.compiler.tool"), project, + object : FileChooserDescriptor(true, false, true, true, false, false) {}.withFileFilter { file -> + FileTypeRegistry.getInstance().isFileOfType(file, ArchiveFileType.INSTANCE) } + ) + .align(AlignX.FILL) .label(JavaCompilerBundle.message("eclipse.compiler.path.label"), LabelPosition.TOP) .comment(JavaCompilerBundle.message("eclipse.compiler.path.comment")) .component diff --git a/java/compiler/openapi/resources/messages/JavaCompilerBundle.properties b/java/compiler/openapi/resources/messages/JavaCompilerBundle.properties index 72b36a2ae883..310c581fc06b 100644 --- a/java/compiler/openapi/resources/messages/JavaCompilerBundle.properties +++ b/java/compiler/openapi/resources/messages/JavaCompilerBundle.properties @@ -181,7 +181,7 @@ cannot.package.file=Cannot package file packaging.files=Packaging Files only.works.while.not.running.debugging=Only works while not running / debugging disabled.in.power.save.mode=Disabled in Power Save mode -path.to.ecj.compiler.tool=Path to ecj compiler tool +path.to.ecj.compiler.tool=Path To ECJ Compiler Tool choose.members=Choose Members all.modules= create.jar.from.modules=Create JAR from Modules