Search in sources :

Example 31 with Configurable

use of com.intellij.openapi.options.Configurable in project android by JetBrains.

the class OpenGradleSettingsHyperlink method execute.

@Override
protected void execute(@NotNull Project project) {
    ExternalSystemManager<?, ?, ?, ?, ?> manager = getManager(GRADLE_SYSTEM_ID);
    assert manager instanceof GradleManager;
    GradleManager gradleManager = (GradleManager) manager;
    Configurable configurable = gradleManager.getConfigurable(project);
    ShowSettingsUtil.getInstance().editConfigurable(project, configurable);
}
Also used : GradleManager(org.jetbrains.plugins.gradle.GradleManager) Configurable(com.intellij.openapi.options.Configurable)

Example 32 with Configurable

use of com.intellij.openapi.options.Configurable in project ballerina by ballerina-lang.

the class BallerinaLibrariesConfigurableProvider method showModulesConfigurable.

public static void showModulesConfigurable(@NotNull Project project) {
    ApplicationManager.getApplication().assertIsDispatchThread();
    if (!project.isDisposed()) {
        Configurable configurable = new BallerinaLibrariesConfigurableProvider(project).createConfigurable(true);
        ShowSettingsUtil.getInstance().editConfigurable(project, configurable);
    }
}
Also used : CompositeConfigurable(com.intellij.openapi.options.CompositeConfigurable) UnnamedConfigurable(com.intellij.openapi.options.UnnamedConfigurable) Configurable(com.intellij.openapi.options.Configurable)

Example 33 with Configurable

use of com.intellij.openapi.options.Configurable in project intellij-community by JetBrains.

the class ConfigurableVisitor method find.

public final Configurable find(@NotNull Configurable... configurables) {
    for (Configurable configurable : configurables) {
        if (accept(configurable)) {
            return configurable;
        }
    }
    for (Configurable configurable : configurables) {
        if (configurable instanceof Configurable.Composite) {
            Configurable.Composite composite = (Configurable.Composite) configurable;
            Configurable result = find(composite.getConfigurables());
            if (result != null) {
                return result;
            }
        }
    }
    return null;
}
Also used : Configurable(com.intellij.openapi.options.Configurable) SearchableConfigurable(com.intellij.openapi.options.SearchableConfigurable)

Example 34 with Configurable

use of com.intellij.openapi.options.Configurable in project intellij-community by JetBrains.

the class OptionsEditorContext method fireSelected.

ActionCallback fireSelected(@Nullable final Configurable configurable, @NotNull OptionsEditorColleague requestor) {
    if (myCurrentConfigurable == configurable)
        return ActionCallback.REJECTED;
    final Configurable old = myCurrentConfigurable;
    myCurrentConfigurable = configurable;
    return notify(new ColleagueAction() {

        public ActionCallback process(final OptionsEditorColleague colleague) {
            return colleague.onSelected(configurable, old);
        }
    }, requestor);
}
Also used : ActionCallback(com.intellij.openapi.util.ActionCallback) Configurable(com.intellij.openapi.options.Configurable)

Example 35 with Configurable

use of com.intellij.openapi.options.Configurable in project intellij-community by JetBrains.

the class SettingsEditor method getHelpTopic.

@Override
String getHelpTopic() {
    Configurable configurable = myFilter.myContext.getCurrentConfigurable();
    while (configurable != null) {
        String topic = configurable.getHelpTopic();
        if (topic != null) {
            return topic;
        }
        configurable = myFilter.myContext.getParentConfigurable(configurable);
    }
    return "preferences";
}
Also used : Configurable(com.intellij.openapi.options.Configurable)

Aggregations

Configurable (com.intellij.openapi.options.Configurable)66 SearchableConfigurable (com.intellij.openapi.options.SearchableConfigurable)32 BaseConfigurable (com.intellij.openapi.options.BaseConfigurable)8 NotNull (org.jetbrains.annotations.NotNull)8 ConfigurableGroup (com.intellij.openapi.options.ConfigurableGroup)7 UnnamedConfigurable (com.intellij.openapi.options.UnnamedConfigurable)7 Nullable (org.jetbrains.annotations.Nullable)6 Project (com.intellij.openapi.project.Project)5 ArrayList (java.util.ArrayList)5 ConfigurationException (com.intellij.openapi.options.ConfigurationException)4 ArtifactsStructureConfigurable (com.intellij.openapi.roots.ui.configuration.artifacts.ArtifactsStructureConfigurable)4 ApplicationConfigurable (com.intellij.execution.application.ApplicationConfigurable)3 JUnitConfigurable (com.intellij.execution.junit2.configuration.JUnitConfigurable)3 DataContext (com.intellij.openapi.actionSystem.DataContext)3 Module (com.intellij.openapi.module.Module)3 TabbedConfigurable (com.intellij.openapi.options.TabbedConfigurable)3 Settings (com.intellij.openapi.options.ex.Settings)3 ActionCallback (com.intellij.openapi.util.ActionCallback)3 ExtensionsArea (com.intellij.openapi.extensions.ExtensionsArea)2 CompositeConfigurable (com.intellij.openapi.options.CompositeConfigurable)2