[i18n] add bundles to java, java.analysis, java.i18n modules and move some properties to them

GitOrigin-RevId: 7ce28e172d977caf53c4c570f17d17c15686f675
This commit is contained in:
nik
2020-02-12 15:06:42 +03:00
committed by intellij-monorepo-bot
parent 24232ac64e
commit 94b05fb068
17 changed files with 111 additions and 19 deletions

View File

@@ -4,6 +4,7 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />

View File

@@ -0,0 +1 @@
inspection.reference.default.package=<default>

View File

@@ -0,0 +1,28 @@
// Copyright 2000-2020 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 com.intellij.java.analysis;
import com.intellij.DynamicBundle;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;
import java.util.function.Supplier;
public class JavaAnalysisBundle extends DynamicBundle {
@NonNls private static final String BUNDLE = "messages.JavaAnalysisBundle";
private static final JavaAnalysisBundle INSTANCE = new JavaAnalysisBundle();
private JavaAnalysisBundle() {
super(BUNDLE);
}
@NotNull
public static String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
return INSTANCE.getMessage(key, params);
}
@NotNull
public static Supplier<String> lazyMessage(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
return INSTANCE.getLazyMessage(key, params);
}
}