forked from JetBrains/intellij-community
-
-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathPyBundle.java
More file actions
25 lines (19 loc) · 1001 Bytes
/
PyBundle.java
File metadata and controls
25 lines (19 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
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.python;
import com.intellij.DynamicBundle;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;
import java.util.function.Supplier;
public final class PyBundle extends DynamicBundle {
public static final @NonNls String BUNDLE = "messages.PyBundle";
public static final PyBundle INSTANCE = new PyBundle();
private PyBundle() { super(BUNDLE); }
public static @NotNull @Nls String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
return INSTANCE.getMessage(key, params);
}
public static @NotNull Supplier<@Nls String> messagePointer(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) {
return INSTANCE.getLazyMessage(key, params);
}
}