mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
[platform] move properties used in java.indexing* modules to a separate bundle (IDEA-209382)
GitOrigin-RevId: 860146aacc4e58c472763131322e4609336a573c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
952d7a15ea
commit
a77f1a6c3c
@@ -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" />
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
psi.search.inheritors.of.class.progress=Searching for inheritors of {0}...
|
||||
psi.search.inheritors.progress=Searching for inheritors...
|
||||
@@ -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.indexing;
|
||||
|
||||
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 JavaIndexingBundle extends DynamicBundle {
|
||||
@NonNls private static final String BUNDLE = "messages.JavaIndexingBundle";
|
||||
private static final JavaIndexingBundle INSTANCE = new JavaIndexingBundle();
|
||||
|
||||
private JavaIndexingBundle() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user