|
23 | 23 | import consulo.externalSystem.ui.awt.ExternalSystemUiUtil; |
24 | 24 | import consulo.externalSystem.ui.awt.PaintAwarePanel; |
25 | 25 | import consulo.fileChooser.FileChooserDescriptor; |
26 | | -import consulo.gradle.GradleBundle; |
27 | 26 | import consulo.gradle.GradleConstants; |
28 | 27 | import consulo.gradle.localize.GradleLocalize; |
29 | 28 | import consulo.gradle.setting.DistributionType; |
@@ -120,7 +119,7 @@ protected void fillExtraControls(@Nonnull Disposable uiDisposable, @Nonnull Pain |
120 | 119 | content.add(myGradleHomePathField, ExternalSystemUiUtil.getFillLineConstraints(0)); |
121 | 120 |
|
122 | 121 | BundleBoxBuilder builder = BundleBoxBuilder.create(uiDisposable); |
123 | | - builder.withNoneItem("Auto Select", PlatformIconGroup.actionsFind()); |
| 122 | + builder.withNoneItem(LocalizeValue.localizeTODO("Auto Select"), PlatformIconGroup.actionsFind()); |
124 | 123 | builder.withSdkTypeFilterByClass(JavaSdkType.class); |
125 | 124 |
|
126 | 125 | myBundleBox = builder.build(); |
@@ -200,12 +199,12 @@ public boolean validate(@Nonnull GradleProjectSettings settings) throws Configur |
200 | 199 | if (myUseLocalDistributionButton.isSelected()) { |
201 | 200 | if (StringUtil.isEmpty(gradleHomePath)) { |
202 | 201 | myGradleHomeSettingType = LocationSettingType.UNKNOWN; |
203 | | - throw new ConfigurationException(GradleBundle.message("gradle.home.setting.type.explicit.empty", gradleHomePath)); |
| 202 | + throw new ConfigurationException(GradleLocalize.gradleHomeSettingTypeExplicitEmpty()); |
204 | 203 | } |
205 | 204 | else if (!myInstallationManager.isGradleSdkHome(new File(gradleHomePath))) { |
206 | 205 | myGradleHomeSettingType = LocationSettingType.EXPLICIT_INCORRECT; |
207 | 206 | new DelayedBalloonInfo(NotificationType.ERROR, myGradleHomeSettingType, 0).run(); |
208 | | - throw new ConfigurationException(GradleLocalize.gradleHomeSettingTypeExplicitIncorrect(gradleHomePath).get()); |
| 207 | + throw new ConfigurationException(GradleLocalize.gradleHomeSettingTypeExplicitIncorrect(gradleHomePath)); |
209 | 208 | } |
210 | 209 | } |
211 | 210 | return true; |
|
0 commit comments