X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=blobdiff_plain;f=platform%2Fplatform-impl%2Fsrc%2Fcom%2Fintellij%2Futil%2Fui%2FSwingHelper.java;h=7eff39958f33f4339fd613963a15cccaafd15f83;hp=b1f029909a740bc7e92837224364060e175ca299;hb=5ee92e62c9ae9966bfed08d4928f7d450ab0c3cd;hpb=9e29abebdde63a12d5766116007325c58c4e5240 diff --git a/platform/platform-impl/src/com/intellij/util/ui/SwingHelper.java b/platform/platform-impl/src/com/intellij/util/ui/SwingHelper.java index b1f029909a74..7eff39958f33 100644 --- a/platform/platform-impl/src/com/intellij/util/ui/SwingHelper.java +++ b/platform/platform-impl/src/com/intellij/util/ui/SwingHelper.java @@ -113,11 +113,6 @@ public class SwingHelper { return newGenericBoxPanel(false, childAlignmentY, children); } - @NotNull - public static JPanel newHorizontalPanel(float childAlignmentY, @NotNull Collection children) { - return newHorizontalPanel(childAlignmentY, children.toArray(new Component[children.size()])); - } - private static JPanel newGenericBoxPanel(boolean verticalOrientation, float childAlignment, Component... children) { @@ -525,7 +520,7 @@ public class SwingHelper { } private static void getAllElements(Element root, List list, List toCheck) { - if (toCheck.contains(root.getName().toLowerCase())) { + if (toCheck.contains(root.getName().toLowerCase(Locale.US))) { list.add(root); } for (int i = 0; i < root.getElementCount(); i++) { @@ -622,12 +617,12 @@ public class SwingHelper { } @NotNull - public static JEditorPane createHtmlViewer(boolean carryTextOver, + public static JEditorPane createHtmlViewer(boolean lineWrap, @Nullable Font font, @Nullable Color background, @Nullable Color foreground) { final JEditorPane textPane; - if (carryTextOver) { + if (lineWrap) { textPane = new JEditorPane() { @Override public Dimension getPreferredSize() {