mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
OC-11817 Add inherited and override presentation to Swift file structure
This commit is contained in:
@@ -22,7 +22,16 @@ import java.awt.*;
|
||||
public class FontUtil {
|
||||
@NotNull
|
||||
public static String rightArrow(@NotNull Font font) {
|
||||
char rightArrow = '\u2192';
|
||||
return font.canDisplay(rightArrow) ? String.valueOf(rightArrow) : "->";
|
||||
return canDisplay(font, '\u2192', "->");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static String upArrow(@NotNull Font font, @NotNull String defaultValue) {
|
||||
return canDisplay(font, '\u2191', defaultValue);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static String canDisplay(@NotNull Font font, char value, @NotNull String defaultValue) {
|
||||
return font.canDisplay(value) ? String.valueOf(value) : defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3281,6 +3281,11 @@ public class UIUtil {
|
||||
return FontUtil.rightArrow(getLabelFont());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static String upArrow(@NotNull String defaultValue) {
|
||||
return FontUtil.upArrow(getLabelFont(), defaultValue);
|
||||
}
|
||||
|
||||
public static EmptyBorder getTextAlignBorder(@NotNull JToggleButton alignSource) {
|
||||
ButtonUI ui = alignSource.getUI();
|
||||
int leftGap = alignSource.getIconTextGap();
|
||||
|
||||
Reference in New Issue
Block a user