From ebd896ad3738959e3d366eab5268634187910f0b Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Sat, 22 Nov 2014 12:04:37 +0100 Subject: [PATCH] fix compilation --- .../ui/inspectionsTree/InspectionsConfigTreeTable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/inspectionsTree/InspectionsConfigTreeTable.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/inspectionsTree/InspectionsConfigTreeTable.java index b7491c1373ce..a4161191cc5f 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/inspectionsTree/InspectionsConfigTreeTable.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/inspectionsTree/InspectionsConfigTreeTable.java @@ -69,7 +69,7 @@ public class InspectionsConfigTreeTable extends TreeTable { private final static int SEVERITIES_COLUMN = 1; private final static int IS_ENABLED_COLUMN = 2; - public static int getAdditionalShift() { + public static int getAdditionalShiftIfMac() { return SystemInfo.isMac ? 10 : 0; } @@ -84,7 +84,7 @@ public class InspectionsConfigTreeTable extends TreeTable { severitiesColumn.setMaxWidth(20); final TableColumn isEnabledColumn = getColumnModel().getColumn(IS_ENABLED_COLUMN); - isEnabledColumn.setMaxWidth(20 + getAdditionalShift()); + isEnabledColumn.setMaxWidth(20 + getAdditionalShiftIfMac()); isEnabledColumn.setCellRenderer(new ThreeStateCheckBoxRenderer()); isEnabledColumn.setCellEditor(new ThreeStateCheckBoxRenderer());