本文整理汇总了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();
}
示例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();
}
}));
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}));
}