Java 类com.intellij.ui.tabs.FileColorManagerImpl 实例源码

项目:intellij-ce-playground    文件:ProjectViewTree.java   
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;
}
项目:tools-idea    文件:ProjectViewTree.java   
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;
}
项目:consulo    文件:ProjectViewTree.java   
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;
}