additional constructor for custom line border
authorKonstantin Bulenkov <kb@jetbrains.com>
Tue, 3 May 2016 15:27:46 +0000 (17:27 +0200)
committerKonstantin Bulenkov <kb@jetbrains.com>
Tue, 3 May 2016 15:30:15 +0000 (17:30 +0200)
platform/util/src/com/intellij/util/ui/JBUI.java

index d6f47ccb0d4756eb86769d9cd11d4399b88f564f..5a95162f3aa23d3e3791eb1f6936609224c52d00 100644 (file)
@@ -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);