use of com.intellij.flex.uiDesigner.libraries.FlexLibrarySet.ContainsCondition in project intellij-plugins by JetBrains.
the class LibraryManager method getOrCreateFlexLibrarySet.
private FlexLibrarySet getOrCreateFlexLibrarySet(LibraryCollector libraryCollector, AssetCounter assetCounter) throws InitException {
final String key = createKey(libraryCollector.sdkLibraries, true);
FlexLibrarySet flexLibrarySet = (FlexLibrarySet) librarySets.get(key);
if (flexLibrarySet == null) {
final Set<CharSequence> globalDefinitions = getGlobalDefinitions(libraryCollector.getGlobalLibrary());
final Condition<String> globalContains = name -> globalDefinitions.contains(name);
final SortResult sortResult = sortLibraries(new LibrarySorter(new FlexDefinitionProcessor(libraryCollector.getFlexSdkVersion()), new FlexDefinitionMapProcessor(libraryCollector.getFlexSdkVersion(), globalContains)), libraryCollector, globalContains, key, true);
flexLibrarySet = new FlexLibrarySet(sortResult, null, new ContainsCondition(globalDefinitions, sortResult.definitionMap), assetCounter, libraryCollector.getFlexSdkVersion());
registerLibrarySet(key, flexLibrarySet);
}
return flexLibrarySet;
}
Aggregations