List of usage examples for com.intellij.openapi.options SimpleConfigurable create
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)
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(); }