mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Gradle: allow to use bundled JDK for gradle tooling
This commit is contained in:
+5
-1
@@ -293,7 +293,11 @@ public class IdeaGradleProjectSettingsControlBuilder implements GradleProjectSet
|
||||
public IdeaGradleProjectSettingsControlBuilder addGradleJdkComponents(PaintAwarePanel content, int indentLevel) {
|
||||
if(!dropGradleJdkComponents) {
|
||||
myGradleJdkLabel = new JBLabel(GradleBundle.message("gradle.settings.text.jvm.path"));
|
||||
myGradleJdkComboBox = new ExternalSystemJdkComboBox().withoutJre();
|
||||
myGradleJdkComboBox = new ExternalSystemJdkComboBox();
|
||||
Sdk internalJdk = ExternalSystemJdkUtil.getJdk(null, ExternalSystemJdkUtil.USE_INTERNAL_JAVA);
|
||||
if (internalJdk == null || !ExternalSystemJdkUtil.isValidJdk(internalJdk.getHomePath())) {
|
||||
myGradleJdkComboBox.withoutJre();
|
||||
}
|
||||
|
||||
content.add(myGradleJdkLabel, ExternalSystemUiUtil.getLabelConstraints(indentLevel));
|
||||
myGradleJdkPanel = new JPanel(new BorderLayout(SystemInfo.isMac ? 0 : 2, 0));
|
||||
|
||||
Reference in New Issue
Block a user