mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
Extras: FlatInspector: fixed border value when class hierarchy is enabled
This commit is contained in:
@@ -563,6 +563,9 @@ public class FlatInspector
|
|||||||
String simpleName = (dot >= 0) ? name.substring( dot + 1 ) : name;
|
String simpleName = (dot >= 0) ? name.substring( dot + 1 ) : name;
|
||||||
buf.append( simpleName ).append( ' ' ).append( toDimmedText( "(" + pkg + ")" ) );
|
buf.append( simpleName ).append( ' ' ).append( toDimmedText( "(" + pkg + ")" ) );
|
||||||
|
|
||||||
|
if( UIResource.class.isAssignableFrom( cls ) )
|
||||||
|
buf.append( " UI" );
|
||||||
|
|
||||||
if( !classHierarchy )
|
if( !classHierarchy )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -623,11 +626,14 @@ public class FlatInspector
|
|||||||
|
|
||||||
String s = toString( b.getClass(), classHierarchy );
|
String s = toString( b.getClass(), classHierarchy );
|
||||||
|
|
||||||
if( b instanceof EmptyBorder )
|
if( b instanceof EmptyBorder ) {
|
||||||
s += '(' + toString( ((EmptyBorder)b).getBorderInsets() ) + ')';
|
String borderInsets = " (" + toString( ((EmptyBorder)b).getBorderInsets() ) + ')';
|
||||||
|
int brIndex = s.indexOf( "<br>" );
|
||||||
if( b instanceof UIResource )
|
if( brIndex >= 0 )
|
||||||
s += " UI";
|
s = s.substring( 0, brIndex ) + borderInsets + s.substring( brIndex );
|
||||||
|
else
|
||||||
|
s += borderInsets;
|
||||||
|
}
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user