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);
}
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);
}
}
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;
}
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);
}
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";
}
Aggregations