From dffbf5730a4addf701262038aebe96c2eea8b88a Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 3 May 2016 17:27:46 +0200 Subject: [PATCH] additional constructor for custom line border --- platform/util/src/com/intellij/util/ui/JBUI.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/util/ui/JBUI.java b/platform/util/src/com/intellij/util/ui/JBUI.java index d6f47ccb0d47..5a95162f3aa2 100644 --- a/platform/util/src/com/intellij/util/ui/JBUI.java +++ b/platform/util/src/com/intellij/util/ui/JBUI.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -237,6 +237,10 @@ public class JBUI { return customLine(color, thickness, thickness, thickness, thickness); } + public static Border customLine(Color color) { + return customLine(color, 1); + } + public static Border merge(@Nullable Border source, @NotNull Border extra, boolean extraIsOutside) { if (source == null) return extra; return new CompoundBorder(extraIsOutside ? extra : source, extraIsOutside? source : extra);