ignore internal UI keys in dumps and in UI defaults inspector

This commit is contained in:
Karl Tauber
2021-10-28 20:47:47 +02:00
parent b77b338c7a
commit ef25575f85
5 changed files with 2160 additions and 5 deletions

View File

@@ -373,7 +373,7 @@ public class UIDefaultsDump
Object value = entry.getValue();
String strKey = String.valueOf( key );
if( !keyFilter.test( strKey ) )
if( !keyFilter.test( strKey ) || strKey.startsWith( "FlatLaf.internal." ) )
return;
String prefix = keyPrefix( strKey );

View File

@@ -87,7 +87,7 @@ public class UIDefaultsKeysDump
UIDefaults defaults = UIManager.getLookAndFeel().getDefaults();
for( Object key : defaults.keySet() ) {
if( key instanceof String )
if( key instanceof String && !((String)key).startsWith( "FlatLaf.internal." ) )
keys.add( (String) key );
}
}