• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java OptionsBundle类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.intellij.openapi.options.OptionsBundle的典型用法代码示例。如果您正苦于以下问题:Java OptionsBundle类的具体用法?Java OptionsBundle怎么用?Java OptionsBundle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

OptionsBundle类属于com.intellij.openapi.options包,在下文中一共展示了OptionsBundle类的32个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createConfigurables

点赞 3

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
@Override
public Collection<? extends Configurable> createConfigurables(@NotNull DebuggerSettingsCategory category) {
  Getter<DebuggerSettings> settingsGetter = new Getter<DebuggerSettings>() {
    @Override
    public DebuggerSettings get() {
      return DebuggerSettings.getInstance();
    }
  };

  switch (category) {
    case GENERAL:
      return singletonList(SimpleConfigurable.create("reference.idesettings.debugger.launching", OptionsBundle.message("options.java.display.name"),
                                                     DebuggerLaunchingConfigurable.class, settingsGetter));
    case DATA_VIEWS:
      return createDataViewsConfigurable();
    case STEPPING:
      return singletonList(SimpleConfigurable.create("reference.idesettings.debugger.stepping", OptionsBundle.message("options.java.display.name"),
                                                     DebuggerSteppingConfigurable.class, settingsGetter));
    case HOTSWAP:
      return singletonList(SimpleConfigurable.create("reference.idesettings.debugger.hotswap", OptionsBundle.message("options.java.display.name"),
                                                     JavaHotSwapConfigurableUi.class, settingsGetter));
  }
  return Collections.emptyList();
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:26,
代码来源:JavaDebuggerSettings.java

示例2: addInspectionSeverityAttributes

点赞 3

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
private static void addInspectionSeverityAttributes(List<AttributesDescriptor> descriptors) {
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.unknown.symbol"), CodeInsightColors.WRONG_REFERENCES_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.deprecated.symbol"), CodeInsightColors.DEPRECATED_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.unused.symbol"), CodeInsightColors.NOT_USED_ELEMENT_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.error"), CodeInsightColors.ERRORS_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.warning"), CodeInsightColors.WARNINGS_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.weak.warning"), CodeInsightColors.WEAK_WARNING_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.server.problems"), CodeInsightColors.GENERIC_SERVER_ERROR_OR_WARNING));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.server.duplicate"), CodeInsightColors.DUPLICATE_FROM_SERVER));

  for (SeveritiesProvider provider : Extensions.getExtensions(SeveritiesProvider.EP_NAME)) {
    for (HighlightInfoType highlightInfoType : provider.getSeveritiesHighlightInfoTypes()) {
      final TextAttributesKey attributesKey = highlightInfoType.getAttributesKey();
      descriptors.add(new AttributesDescriptor(toDisplayName(attributesKey), attributesKey));
    }
  }
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:18,
代码来源:ColorSettingsUtil.java

示例3: addInspectionSeverityAttributes

点赞 3

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
private static void addInspectionSeverityAttributes(List<AttributesDescriptor> descriptors) {
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.unknown.symbol"), CodeInsightColors.WRONG_REFERENCES_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.deprecated.symbol"), CodeInsightColors.DEPRECATED_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.unused.symbol"), CodeInsightColors.NOT_USED_ELEMENT_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.error"), CodeInsightColors.ERRORS_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.warning"), CodeInsightColors.WARNINGS_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.weak.warning"), CodeInsightColors.WEAK_WARNING_ATTRIBUTES));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.server.problems"), CodeInsightColors.GENERIC_SERVER_ERROR_OR_WARNING));
  descriptors.add(new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.server.duplicate"), CodeInsightColors.DUPLICATE_FROM_SERVER));

  for (SeveritiesProvider provider : Extensions.getExtensions(SeveritiesProvider.EP_NAME)) {
    for (HighlightInfoType highlightInfoType : provider.getSeveritiesHighlightInfoTypes()) {
      final TextAttributesKey attributesKey = highlightInfoType.getAttributesKey();
      descriptors.add(new AttributesDescriptor(attributesKey.myExternalName, attributesKey));
    }
  }
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:18,
代码来源:ColorSettingsUtil.java

示例4: getComponentPresentableName

点赞 3

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Nonnull
private static String getComponentPresentableName(@Nonnull State state, @Nonnull Class<?> aClass, @Nullable PluginDescriptor pluginDescriptor) {
  String defaultName = state.name();
  String resourceBundleName;
  if (pluginDescriptor != null && pluginDescriptor instanceof IdeaPluginDescriptor && !PluginManagerCore.CORE_PLUGIN.equals(pluginDescriptor.getPluginId())) {
    resourceBundleName = ((IdeaPluginDescriptor)pluginDescriptor).getResourceBundleBaseName();
  }
  else {
    resourceBundleName = OptionsBundle.PATH_TO_BUNDLE;
  }

  if (resourceBundleName == null) {
    return defaultName;
  }

  ClassLoader classLoader = pluginDescriptor == null ? null : pluginDescriptor.getPluginClassLoader();
  classLoader = classLoader == null ? aClass.getClassLoader() : classLoader;
  if (classLoader != null) {
    ResourceBundle bundle = AbstractBundle.getResourceBundle(resourceBundleName, classLoader);
    if (bundle != null) {
      return CommonBundle.messageOrDefault(bundle, "exportable." + defaultName + ".presentable.name", defaultName);
    }
  }
  return defaultName;
}
 

开发者ID:consulo,
项目名称:consulo,
代码行数:26,
代码来源:ExportSettingsAction.java

示例5: forProject

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
public void forProject(Project project) {
  if (project != null) {
    myProjectIcon.setVisible(true);
    myProjectIcon.setText(OptionsBundle.message(project.isDefault()
                                                ? "configurable.default.project.tooltip"
                                                : "configurable.current.project.tooltip"));
  } else {
    myProjectIcon.setVisible(false);
  }
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:11,
代码来源:Banner.java

示例6: setProject

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
void setProject(Project project) {
  if (project == null) {
    myProjectIcon.setVisible(false);
  }
  else {
    myProjectIcon.setVisible(true);
    myProjectIcon.setText(OptionsBundle.message(project.isDefault()
                                                ? "configurable.default.project.tooltip"
                                                : "configurable.current.project.tooltip"));
  }
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:12,
代码来源:Banner.java

示例7: getHTMLFooter

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
public String getHTMLFooter() {
  return "UI theme can be changed later in " +
         CommonBundle.settingsTitle()
         + " | " + OptionsBundle.message("configurable.group.appearance.settings.display.name")
         + " | " + "Appearance";
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:8,
代码来源:CustomizeUIThemeStepPanel.java

示例8: getAttributeDescriptors

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
public AttributesDescriptor[] getAttributeDescriptors() {
  return new AttributesDescriptor[] {
    new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.breakpoint.line"), DebuggerColors.BREAKPOINT_ATTRIBUTES),
    new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.execution.point"), DebuggerColors.EXECUTIONPOINT_ATTRIBUTES),
    new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.not.top.frame"), DebuggerColors.NOT_TOP_FRAME_ATTRIBUTES),
    new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.inlined.values"), DebuggerColors.INLINED_VALUES),
    new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.inlined.values.modified"), DebuggerColors.INLINED_VALUES_MODIFIED),
    new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.inlined.values.execution.line"), DebuggerColors.INLINED_VALUES_EXECUTION_LINE),
  };
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:12,
代码来源:DebuggerColorsPage.java

示例9: toDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
private static String toDisplayName(@NotNull TextAttributesKey attributesKey) {
  //noinspection StringToUpperCaseOrToLowerCaseWithoutLocale
  return OptionsBundle.message(
    "options.java.attribute.descriptor.errors.group",
    StringUtil.capitalize(attributesKey.getExternalName().toLowerCase().replaceAll("_", " ")));
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:8,
代码来源:ColorSettingsUtil.java

示例10: getColorDescriptors

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@NotNull
public ColorDescriptor[] getColorDescriptors() {
  // todo: make preview for it

  final ColorKey[] colorKeys = XmlTagTreeHighlightingColors.getColorKeys();
  final ColorDescriptor[] colorDescriptors = new ColorDescriptor[colorKeys.length];

  for (int i = 0; i < colorDescriptors.length; i++) {
    colorDescriptors[i] = new ColorDescriptor(OptionsBundle.message("options.html.attribute.descriptor.tag.tree", i + 1),
                                              colorKeys[i], ColorDescriptor.Kind.BACKGROUND);
  }

  return colorDescriptors;
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:16,
代码来源:HTMLColorsPage.java

示例11: getAttributeDescriptors

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
public AttributesDescriptor[] getAttributeDescriptors() {
  return new AttributesDescriptor[] {
    new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.breakpoint.line"), DebuggerColors.BREAKPOINT_ATTRIBUTES),
    new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.execution.point"), DebuggerColors.EXECUTIONPOINT_ATTRIBUTES),
  };
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:8,
代码来源:DebuggerColorsPage.java

示例12: getColorDescriptors

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
public ColorDescriptor[] getColorDescriptors() {
  // todo: make preview for it

  final ColorKey[] colorKeys = XmlTagTreeHighlightingColors.getColorKeys();
  final ColorDescriptor[] colorDescriptors = new ColorDescriptor[colorKeys.length];

  for (int i = 0; i < colorDescriptors.length; i++) {
    colorDescriptors[i] = new ColorDescriptor(OptionsBundle.message("options.html.attribute.descriptor.tag.tree", i + 1),
                                              colorKeys[i], ColorDescriptor.Kind.BACKGROUND);
  }

  return colorDescriptors;
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:15,
代码来源:HTMLColorsPage.java

示例13: getAttributeDescriptors

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@Nonnull
public AttributesDescriptor[] getAttributeDescriptors() {
  return new AttributesDescriptor[] {
          new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.breakpoint.line"), DebuggerColors.BREAKPOINT_ATTRIBUTES),
          new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.execution.point"), DebuggerColors.EXECUTIONPOINT_ATTRIBUTES),
          new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.not.top.frame"), DebuggerColors.NOT_TOP_FRAME_ATTRIBUTES),
          new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.inlined.values"), DebuggerColors.INLINED_VALUES),
          new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.inlined.values.modified"), DebuggerColors.INLINED_VALUES_MODIFIED),
          new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.inlined.values.execution.line"), DebuggerColors.INLINED_VALUES_EXECUTION_LINE),
  };
}
 

开发者ID:consulo,
项目名称:consulo,
代码行数:13,
代码来源:DebuggerColorsPage.java

示例14: getColorDescriptors

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@Nonnull
public ColorDescriptor[] getColorDescriptors() {
  return new ColorDescriptor[] {
          new ColorDescriptor(OptionsBundle.message("options.java.attribute.descriptor.recursive.call"), DebuggerColors.RECURSIVE_CALL_ATTRIBUTES, ColorDescriptor.Kind.BACKGROUND)
  };
}
 

开发者ID:consulo,
项目名称:consulo,
代码行数:8,
代码来源:DebuggerColorsPage.java

示例15: createConfigurables

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
@Override
public Collection<? extends Configurable> createConfigurables(@NotNull DebuggerSettingsCategory category)
{
	Getter<DebuggerSettings> settingsGetter = new Getter<DebuggerSettings>()
	{
		@Override
		public DebuggerSettings get()
		{
			return DebuggerSettings.getInstance();
		}
	};

	switch(category)
	{
		case GENERAL:
			return singletonList(SimpleConfigurable.create("reference.idesettings.debugger.launching",
					OptionsBundle.message("options.java.display.name"), DebuggerLaunchingConfigurable.class, settingsGetter));
		case DATA_VIEWS:
			return createDataViewsConfigurable();
		case STEPPING:
			return singletonList(SimpleConfigurable.create("reference.idesettings.debugger.stepping",
					OptionsBundle.message("options.java.display.name"), DebuggerSteppingConfigurable.class, settingsGetter));
		case HOTSWAP:
			return singletonList(SimpleConfigurable.create("reference.idesettings.debugger.hotswap", OptionsBundle.message("options.java.display" +
					".name"), JavaHotSwapConfigurableUi.class, settingsGetter));
	}
	return Collections.emptyList();
}
 

开发者ID:consulo,
项目名称:consulo-java,
代码行数:30,
代码来源:JavaDebuggerSettings.java

示例16: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
public String getDisplayName() {
  return OptionsBundle.message("options.java.display.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:5,
代码来源:DebuggerDataViewsConfigurable.java

示例17: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@NotNull
public String getDisplayName() {
  return OptionsBundle.message("options.java.display.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:6,
代码来源:JavaColorSettingsPage.java

示例18: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
public String getDisplayName() {
  return OptionsBundle.message("ide.settings.display.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:5,
代码来源:IdeConfigurablesGroup.java

示例19: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
public String getDisplayName() {
  if (isDefault()) return OptionsBundle.message("template.project.settings.display.name");
  return OptionsBundle.message("project.settings.display.name", myProject.getName());
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:6,
代码来源:ProjectConfigurablesGroup.java

示例20: getColorDescriptors

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
public ColorDescriptor[] getColorDescriptors() {
  return new ColorDescriptor[] {
    new ColorDescriptor(OptionsBundle.message("options.java.attribute.descriptor.recursive.call"), DebuggerColors.RECURSIVE_CALL_ATTRIBUTES, ColorDescriptor.Kind.BACKGROUND)
  };
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:7,
代码来源:DebuggerColorsPage.java

示例21: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
@Override
public String getDisplayName() {
  return OptionsBundle.message("options.language.defaults.display.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:6,
代码来源:DefaultLanguageColorsPage.java

示例22: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@NotNull
public String getDisplayName() {
  return OptionsBundle.message("options.custom.display.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:6,
代码来源:CustomColorsPage.java

示例23: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@NotNull
public String getDisplayName() {
  return OptionsBundle.message("color.settings.console.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:6,
代码来源:ANSIColoredConsoleColorsPage.java

示例24: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@NotNull
public String getDisplayName() {
  return OptionsBundle.message("options.xml.display.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:6,
代码来源:XMLColorsPage.java

示例25: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@NotNull
public String getDisplayName() {
  return OptionsBundle.message("options.html.display.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:6,
代码来源:HTMLColorsPage.java

示例26: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
public String getDisplayName() {
  return OptionsBundle.message("properties.options.display.name");
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:5,
代码来源:PropertiesColorsPage.java

示例27: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
public String getDisplayName() {
  return OptionsBundle.message("ide.settings.display.name");
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:4,
代码来源:IdeConfigurablesGroup.java

示例28: getShortName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
public String getShortName() {
  return OptionsBundle.message("ide.settings.short.name");
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:4,
代码来源:IdeConfigurablesGroup.java

示例29: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
public String getDisplayName() {
  if (isDefault()) return OptionsBundle.message("template.project.settings.display.name");
  return OptionsBundle.message("project.settings.display.name", myProject.getName());
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:5,
代码来源:ProjectConfigurablesGroup.java

示例30: getShortName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
public String getShortName() {
  return isDefault() ? OptionsBundle.message("template.project.settings.short.name") : OptionsBundle
    .message("project.settings.short.name");
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:5,
代码来源:ProjectConfigurablesGroup.java

示例31: getPresentableName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@Override
@NotNull
public String getPresentableName() {
  return OptionsBundle.message("options.editor.settings.presentable.name");
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:6,
代码来源:EditorSettingsExternalizable.java

示例32: getDisplayName

点赞 2

import com.intellij.openapi.options.OptionsBundle; //导入依赖的package包/类
@NotNull
public String getDisplayName() {
  return OptionsBundle.message("options.xml.display.name");
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:5,
代码来源:XMLColorsPage.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)