UIDefaultsDump: used FlatAllIJThemes instead of IJThemesManager to get list of IJ themes

This commit is contained in:
Karl Tauber
2020-04-23 14:02:25 +02:00
parent 8e471fd720
commit 2ab023beb0
3 changed files with 12 additions and 18 deletions

View File

@@ -25,21 +25,20 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.formdev.flatlaf.json.Json;
import com.formdev.flatlaf.util.StringUtils;
/**
* @author Karl Tauber
*/
public class IJThemesManager
class IJThemesManager
{
final List<IJThemeInfo> bundledThemes = new ArrayList<>();
final List<IJThemeInfo> moreThemes = new ArrayList<>();
private final Map<File,Long> lastModifiedMap = new HashMap<>();
@SuppressWarnings( "unchecked" )
public void loadBundledThemes() {
void loadBundledThemes() {
bundledThemes.clear();
// load themes.json
@@ -96,10 +95,4 @@ public class IJThemesManager
}
return false;
}
public List<String> getBundledResourceNames() {
return bundledThemes.stream()
.map( themeInfo -> themeInfo.resourceName )
.collect( Collectors.toList() );
}
}