// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.config;

import com.intellij.ide.ui.search.SearchableOptionContributor;
import com.intellij.ide.ui.search.SearchableOptionProcessor;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.gradle.service.settings.GradleConfigurable;

public class GradleSearchableOptionContributor extends SearchableOptionContributor {
  @Override
  public void processOptions(@NotNull SearchableOptionProcessor processor) {
    processor.addOptions("jvm", null, "Gradle JVM:", GradleConfigurable.ID, GradleConfigurable.DISPLAY_NAME, true);
    processor.addOptions("gradle", null, "Gradle JVM:", GradleConfigurable.ID, GradleConfigurable.DISPLAY_NAME, true);
  }
}

@@ -418,16 +418,71 @@
 gurable;
+%0Aimport org.jetbrains.plugins.gradle.util.GradleBundle;
 %0A%0Apublic
@@ -649,16 +649,99 @@
 ssor) %7B%0A
+    String gradleJvmLabel = GradleBundle.message(%22gradle.settings.text.jvm.path%22);%0A
     proc
@@ -766,37 +766,38 @@
 jvm%22, null, 
-%22G
+g
 radle
- JVM:%22
+JvmLabel
 , GradleConf
@@ -894,21 +894,22 @@
 ll, 
-%22G
+g
 radle
- JVM:%22
+JvmLabel
 , Gr

use gradle jvm UI control label from the bundle