public static boolean isFileColorsEnabledFor(JTree tree) { final boolean enabled = FileColorManagerImpl._isEnabled() && FileColorManagerImpl._isEnabledForProjectView(); final boolean opaque = tree.isOpaque(); if (enabled && opaque) { tree.setOpaque(false); } else if (!enabled && !opaque) { tree.setOpaque(true); } return enabled; }
public static boolean isFileColorsEnabledFor(JTree tree) { boolean enabled = FileColorManagerImpl._isEnabled() && FileColorManagerImpl._isEnabledForProjectView(); boolean opaque = tree.isOpaque(); if (enabled && opaque) { tree.setOpaque(false); } else if (!enabled && !opaque) { tree.setOpaque(true); } return enabled; }