mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
UIDefaultsDump: used FlatAllIJThemes instead of IJThemesManager to get list of IJ themes
This commit is contained in:
@@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user