Search in sources :

Example 1 with FrameworkIntegratorRegistry

use of org.osmorc.frameworkintegration.FrameworkIntegratorRegistry in project intellij-plugins by JetBrains.

the class ApplicationSettings method getActiveFrameworkInstanceDefinitions.

@NotNull
public List<FrameworkInstanceDefinition> getActiveFrameworkInstanceDefinitions() {
    if (myActiveInstances == null) {
        final FrameworkIntegratorRegistry registry = FrameworkIntegratorRegistry.getInstance();
        myActiveInstances = ContainerUtil.filter(myInstances, definition -> registry.findIntegratorByInstanceDefinition(definition) != null);
    }
    return myActiveInstances;
}
Also used : Storage(com.intellij.openapi.components.Storage) FrameworkInstanceDefinition(org.osmorc.frameworkintegration.FrameworkInstanceDefinition) PersistentStateComponent(com.intellij.openapi.components.PersistentStateComponent) FrameworkIntegratorRegistry(org.osmorc.frameworkintegration.FrameworkIntegratorRegistry) ContainerUtil(com.intellij.util.containers.ContainerUtil) LibraryBundlificationRule(org.jetbrains.osgi.jps.model.LibraryBundlificationRule) AbstractCollection(com.intellij.util.xmlb.annotations.AbstractCollection) Nullable(org.jetbrains.annotations.Nullable) List(java.util.List) ServiceManager(com.intellij.openapi.components.ServiceManager) XmlSerializerUtil(com.intellij.util.xmlb.XmlSerializerUtil) State(com.intellij.openapi.components.State) NotNull(org.jetbrains.annotations.NotNull) Condition(com.intellij.openapi.util.Condition) FrameworkIntegratorRegistry(org.osmorc.frameworkintegration.FrameworkIntegratorRegistry) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

PersistentStateComponent (com.intellij.openapi.components.PersistentStateComponent)1 ServiceManager (com.intellij.openapi.components.ServiceManager)1 State (com.intellij.openapi.components.State)1 Storage (com.intellij.openapi.components.Storage)1 Condition (com.intellij.openapi.util.Condition)1 ContainerUtil (com.intellij.util.containers.ContainerUtil)1 XmlSerializerUtil (com.intellij.util.xmlb.XmlSerializerUtil)1 AbstractCollection (com.intellij.util.xmlb.annotations.AbstractCollection)1 List (java.util.List)1 NotNull (org.jetbrains.annotations.NotNull)1 Nullable (org.jetbrains.annotations.Nullable)1 LibraryBundlificationRule (org.jetbrains.osgi.jps.model.LibraryBundlificationRule)1 FrameworkInstanceDefinition (org.osmorc.frameworkintegration.FrameworkInstanceDefinition)1 FrameworkIntegratorRegistry (org.osmorc.frameworkintegration.FrameworkIntegratorRegistry)1