TextAreasTest.test1: refine logging [2]

This commit is contained in:
Anton Tarasov
2015-12-02 18:43:39 +03:00
parent 2038e6faa0
commit ee83a5c47e
2 changed files with 6 additions and 3 deletions
@@ -29,7 +29,7 @@ public final class TextAreasTest extends UsefulTestCase {
{
Logger.setFactory(TestLoggerFactory.class);
TestLoggerFactory.enableDebugLogging(myTestRootDisposable,
new String[]{"#com.intellij.uiDesigner.core.GridLayoutManager"});
new String[]{"#com.intellij.util.ui.UIUtil"});
}
private final Logger LOG = Logger.getInstance("#com.intellij.uiDesigner.core.TextAreasTest");
@@ -87,6 +87,7 @@ import java.util.regex.Pattern;
*/
@SuppressWarnings("StaticMethodOnlyUsedInOneClass")
public class UIUtil {
private static final Logger LOG = Logger.getInstance("#com.intellij.util.ui.UIUtil");
public static final String BORDER_LINE = "<hr size=1 noshade>";
@@ -218,8 +219,6 @@ public class UIUtil {
}
};
private static final Logger LOG = Logger.getInstance("#com.intellij.util.ui.UIUtil");
private static final Color UNFOCUSED_SELECTION_COLOR = Gray._212;
private static final Color ACTIVE_HEADER_COLOR = new Color(160, 186, 213);
private static final Color INACTIVE_HEADER_COLOR = Gray._128;
@@ -2436,6 +2435,10 @@ public class UIUtil {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
if (LOG.isDebugEnabled()) {
LOG.debug("LookAnfFeel: " + UIManager.getLookAndFeel(), new Throwable());
}
if (ourSystemFontData == null) {
Font font = getLabelFont();
if (SystemInfo.isWindows) {