-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSettingsBundle.java
More file actions
30 lines (24 loc) · 1001 Bytes
/
SettingsBundle.java
File metadata and controls
30 lines (24 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package org.overengineer.inlineproblems.bundles;
import com.intellij.DynamicBundle;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.PropertyKey;
import java.util.function.Supplier;
/* The SettingsBundle class is a dynamic bundle for managing internationalized messages.
* It extends the DynamicBundle class.
*/
public final class SettingsBundle extends DynamicBundle {
@NonNls
private static final String BUNDLE = "messages.SettingsBundle";
private static final SettingsBundle INSTANCE = new SettingsBundle();
private SettingsBundle() {
super(BUNDLE);
}
@Nls
public static String message(@PropertyKey(resourceBundle = BUNDLE) String key, Object... params) {
return INSTANCE.getMessage(key, params);
}
public static Supplier<String> messagePointer(@PropertyKey(resourceBundle = BUNDLE) String key, Object... params) {
return INSTANCE.getLazyMessage(key, params);
}
}