当前位置: 首页>>代码示例>>Java>>正文


Java SimpleConfigurable类代码示例

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


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

示例1: createConfigurables

import com.intellij.openapi.options.SimpleConfigurable; //导入依赖的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: createDataViewsConfigurable

import com.intellij.openapi.options.SimpleConfigurable; //导入依赖的package包/类
@SuppressWarnings("SpellCheckingInspection")
@NotNull
public static List<Configurable> createDataViewsConfigurable() {
  return Arrays.<Configurable>asList(new DebuggerDataViewsConfigurable(null),
                                     SimpleConfigurable.create("reference.idesettings.debugger.typerenderers", DebuggerBundle.message("user.renderers.configurable.display.name"),
                                                               UserRenderersConfigurable.class, new Getter<NodeRendererSettings>() {
                                         @Override
                                         public NodeRendererSettings get() {
                                           return NodeRendererSettings.getInstance();
                                         }
                                       }));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:JavaDebuggerSettings.java

示例3: getConfigurables

import com.intellij.openapi.options.SimpleConfigurable; //导入依赖的package包/类
@NotNull
@Override
public Collection<? extends Configurable> getConfigurables(@NotNull DebuggerSettingsCategory category) {
  if (category == DebuggerSettingsCategory.GENERAL) {
    return Collections.singletonList(SimpleConfigurable.create("builtInServer", XmlBundle
      .message("setting.builtin.server.category.label"), BuiltInServerConfigurableUi.class, getInstance()));
  }
  return Collections.emptyList();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:BuiltInServerOptions.java

示例4: createConfigurables

import com.intellij.openapi.options.SimpleConfigurable; //导入依赖的package包/类
@NotNull
@SuppressWarnings("EnumSwitchStatementWhichMissesCases")
@Override
public Collection<? extends Configurable> createConfigurables(@NotNull DebuggerSettingsCategory category) {
  switch (category) {
    case STEPPING:
      return singletonList(SimpleConfigurable.create("reference.idesettings.debugger.groovy", GroovyBundle.message("groovy.debug.caption"),
                                                     "reference.idesettings.debugger.groovy", GroovySteppingConfigurableUi.class, this));
    case HOTSWAP:
      return singletonList(SimpleConfigurable.create("reference.idesettings.debugger.groovy", GroovyBundle.message("groovy.debug.caption"),
                                                     "reference.idesettings.debugger.groovy", GroovyHotSwapConfigurableUi.class, this));
  }
  return Collections.emptyList();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:GroovyDebuggerSettings.java

示例5: createConfigurables

import com.intellij.openapi.options.SimpleConfigurable; //导入依赖的package包/类
@Nonnull
@Override
public Collection<? extends Configurable> createConfigurables(@Nonnull DebuggerSettingsCategory category) {
  if (category == DebuggerSettingsCategory.GENERAL) {
    SimpleConfigurable<BuiltInServerConfigurableUi, BuiltInServerOptions> configurable =
            SimpleConfigurable.create("builtInServer", "Built-in server", BuiltInServerConfigurableUi.class, BuiltInServerOptions.getInstance());
    return Collections.singletonList(configurable);
  }
  return Collections.emptyList();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:BuiltInServerOptions.java

示例6: createConfigurables

import com.intellij.openapi.options.SimpleConfigurable; //导入依赖的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

示例7: createDataViewsConfigurable

import com.intellij.openapi.options.SimpleConfigurable; //导入依赖的package包/类
@SuppressWarnings("SpellCheckingInspection")
@NotNull
public static List<Configurable> createDataViewsConfigurable()
{
	return Arrays.<Configurable>asList(new DebuggerDataViewsConfigurable(null), SimpleConfigurable.create("reference.idesettings.debugger" +
			".typerenderers", DebuggerBundle.message("user.renderers.configurable.display.name"), UserRenderersConfigurable.class,
			new Getter<NodeRendererSettings>()
	{
		@Override
		public NodeRendererSettings get()
		{
			return NodeRendererSettings.getInstance();
		}
	}));
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:16,代码来源:JavaDebuggerSettings.java


注:本文中的com.intellij.openapi.options.SimpleConfigurable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。