mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-235533 provide @Configurable annotation
GitOrigin-RevId: 1f4d7d917310f026d579feee986590c39f88f617
This commit is contained in:
committed by
intellij-monorepo-bot
parent
828eeb62e1
commit
59c0df11af
@@ -7,6 +7,7 @@ import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.openapi.ui.ComboBox;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.util.nls.NlsContexts;
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -132,7 +133,7 @@ public interface Configurable extends UnnamedConfigurable {
|
||||
*
|
||||
* @return the visible name of the configurable component
|
||||
*/
|
||||
@Nls(capitalization = Nls.Capitalization.Title)
|
||||
@Nls @NlsContexts.Configurable
|
||||
@Contract(pure = true)
|
||||
String getDisplayName();
|
||||
|
||||
|
||||
@@ -123,4 +123,10 @@ public class NlsContexts {
|
||||
@Target(ElementType.TYPE_USE)
|
||||
public @interface CommandName {
|
||||
}
|
||||
|
||||
@NlsContext(prefix = "configurable.name")
|
||||
@Nls(capitalization = Nls.Capitalization.Title)
|
||||
@Target(ElementType.TYPE_USE)
|
||||
public @interface Configurable {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user