use of com.intellij.openapi.options.ConfigurableEP in project android by JetBrains.
the class GradleRunnerCleanupTask method doCleanUp.
@Override
void doCleanUp(@NotNull Project project) {
ExtensionsArea area = Extensions.getArea(project);
ExtensionPoint<ConfigurableEP<Configurable>> projectConfigurable = area.getExtensionPoint(PROJECT_CONFIGURABLE);
// Disable the Gradle -> Runner settings.
for (ConfigurableEP<Configurable> configurableEP : projectConfigurable.getExtensions()) {
if (GradleConfigurable.class.getName().equals(configurableEP.instanceClass)) {
List<ConfigurableEP> children = new ArrayList<>();
for (ConfigurableEP child : configurableEP.children) {
if (!GradleRunnerConfigurable.class.getName().equals(child.instanceClass)) {
children.add(child);
}
}
configurableEP.children = children.toArray(new ConfigurableEP[children.size()]);
}
}
}
use of com.intellij.openapi.options.ConfigurableEP in project android by JetBrains.
the class ProjectPreferencesCleanUpTask method doCleanUp.
@Override
void doCleanUp(@NotNull Project project) {
ExtensionsArea area = Extensions.getArea(project);
ExtensionPoint<ConfigurableEP<Configurable>> projectConfigurable = area.getExtensionPoint(PROJECT_CONFIGURABLE);
cleanUpPreferences(projectConfigurable, PROJECT_PREFERENCES_TO_REMOVE);
}
Aggregations