com.intellij.openapi.options.ConfigurableProvider Java Examples
The following examples show how to use
com.intellij.openapi.options.ConfigurableProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigurableExtensionPointUtil.java From consulo with Apache License 2.0 | 5 votes |
@Nullable private static Configurable createConfigurableForProvider(ConfigurableEP<Configurable>[] extensions, Class<? extends ConfigurableProvider> providerClass) { for (ConfigurableEP<Configurable> extension : extensions) { if (extension.providerClass != null) { final Class<Object> aClass = extension.findClassNoExceptions(extension.providerClass); if (aClass != null && providerClass.isAssignableFrom(aClass)) { return extension.createConfigurable(); } } } return null; }
Example #2
Source File: ConfigurableExtensionPointUtil.java From consulo with Apache License 2.0 | 4 votes |
@Nullable public static Configurable createProjectConfigurableForProvider(@Nonnull Project project, Class<? extends ConfigurableProvider> providerClass) { return createConfigurableForProvider(project.getExtensions(Configurable.PROJECT_CONFIGURABLE), providerClass); }
Example #3
Source File: ConfigurableExtensionPointUtil.java From consulo with Apache License 2.0 | 4 votes |
@Nullable public static Configurable createApplicationConfigurableForProvider(Class<? extends ConfigurableProvider> providerClass) { return createConfigurableForProvider(Configurable.APPLICATION_CONFIGURABLE.getExtensions(), providerClass); }