Java Code Examples for com.intellij.ide.plugins.PluginManagerCore#shouldSkipPlugin()

The following examples show how to use com.intellij.ide.plugins.PluginManagerCore#shouldSkipPlugin() . 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: ActionManagerImpl.java    From consulo with Apache License 2.0 6 votes vote down vote up
@Inject
ActionManagerImpl(ActionToolbarFactory toolbarFactory) {
  myToolbarFactory = toolbarFactory;

  StatCollector collector = new StatCollector();

  for (PluginDescriptor plugin : PluginManager.getPlugins()) {
    if (PluginManagerCore.shouldSkipPlugin(plugin)) {
      continue;
    }

    collector.markWith(plugin.getPluginId().toString(), () -> {
      LocalizeHelper localizeHelper = LocalizeHelper.build(plugin);

      registerPluginActions(plugin, localizeHelper);
    });
  }

  collector.dump("ActionManager statistics", LOG::info);
}
 
Example 2
Source File: PluginExtensionRegistrator.java    From consulo with Apache License 2.0 5 votes vote down vote up
public static void registerExtensionPointsAndExtensions(ExtensionAreaId areaId, ExtensionsAreaImpl area) {
  Iterable<PluginDescriptor> plugins = PluginManager.getPlugins();
  List<PluginDescriptor> list = new ArrayList<>();
  for (PluginDescriptor plugin : plugins) {
    if (!PluginManagerCore.shouldSkipPlugin(plugin)) {
      list.add(plugin);
    }
  }

  registerExtensionPointsAndExtensions(areaId, area, list);
}
 
Example 3
Source File: ComponentManagerImpl.java    From consulo with Apache License 2.0 5 votes vote down vote up
protected void fillListenerDescriptors(MultiMap<String, PluginListenerDescriptor> mapByTopic) {
  for (PluginDescriptor plugin : PluginManager.getPlugins()) {
    if (!PluginManagerCore.shouldSkipPlugin(plugin)) {
      List<PluginListenerDescriptor> descriptors = getPluginListenerDescriptors(plugin);

      for (PluginListenerDescriptor descriptor : descriptors) {
        mapByTopic.putValue(descriptor.topicClassName, descriptor);
      }
    }
  }
}
 
Example 4
Source File: ComponentManagerImpl.java    From consulo with Apache License 2.0 5 votes vote down vote up
protected void registerServices(InjectingContainerBuilder builder) {
  for (PluginDescriptor plugin : PluginManager.getPlugins()) {
    if (!PluginManagerCore.shouldSkipPlugin(plugin)) {
      List<ComponentConfig> componentConfigs = getComponentConfigs(plugin);

      for (ComponentConfig componentConfig : componentConfigs) {
        registerComponent(componentConfig, plugin);
      }
    }
  }

  myComponentsRegistry.loadClasses(myNotLazyServices, builder);
}