當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。