Example usage for com.intellij.openapi.options SimpleConfigurable create

List of usage examples for com.intellij.openapi.options SimpleConfigurable create

Introduction

In this page you can find the example usage for com.intellij.openapi.options SimpleConfigurable create.

Prototype

public static <UI extends ConfigurableUi<S>, S> SimpleConfigurable<UI, S> create(@NotNull String id,
            @NotNull String displayName, @Nullable String helpTopic, @NotNull Class<? extends UI> uiClass,
            @NotNull Getter<? extends S> settingsGetter) 

Source Link

Usage

From source file:org.jetbrains.plugins.groovy.debugger.GroovyDebuggerSettings.java

License:Apache License

@NotNull
@SuppressWarnings("EnumSwitchStatementWhichMissesCases")
@Override/*from   w w  w  .j a  v  a2 s .  co  m*/
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();
}