public final class FileColorManagerImpl extends FileColorManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FC_ENABLED |
static java.lang.String |
FC_PROJECT_VIEW_ENABLED |
static java.lang.String |
FC_TABS_ENABLED |
Constructor and Description |
---|
FileColorManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
static boolean |
_isEnabled() |
static boolean |
_isEnabledForProjectView() |
static boolean |
_isEnabledForTabs() |
void |
addScopeColor(java.lang.String scopeName,
java.lang.String colorName,
boolean isProjectLevel) |
java.util.List<com.intellij.ui.tabs.FileColorConfiguration> |
getApplicationLevelConfigurations() |
java.awt.Color |
getColor(java.lang.String name) |
static java.lang.String |
getColorName(java.awt.Color color) |
java.util.Collection<java.lang.String> |
getColorNames() |
java.awt.Color |
getFileColor(VirtualFile file) |
Project |
getProject() |
java.util.List<com.intellij.ui.tabs.FileColorConfiguration> |
getProjectLevelConfigurations() |
java.awt.Color |
getRendererBackground(PsiFile file) |
java.awt.Color |
getRendererBackground(VirtualFile vFile) |
java.awt.Color |
getScopeColor(java.lang.String scopeName) |
boolean |
isEnabled() |
boolean |
isEnabledForProjectView() |
boolean |
isEnabledForTabs() |
boolean |
isShared(java.lang.String scopeName) |
void |
setEnabled(boolean enabled) |
static void |
setEnabledForProjectView(boolean enabled) |
void |
setEnabledForTabs(boolean enabled) |
getInstance
public static final java.lang.String FC_ENABLED
public static final java.lang.String FC_TABS_ENABLED
public static final java.lang.String FC_PROJECT_VIEW_ENABLED
public FileColorManagerImpl(Project project)
public boolean isEnabled()
isEnabled
in class FileColorManager
public static boolean _isEnabled()
public void setEnabled(boolean enabled)
setEnabled
in class FileColorManager
public void setEnabledForTabs(boolean enabled)
public boolean isEnabledForTabs()
isEnabledForTabs
in class FileColorManager
public static boolean _isEnabledForTabs()
public boolean isEnabledForProjectView()
isEnabledForProjectView
in class FileColorManager
public static boolean _isEnabledForProjectView()
public static void setEnabledForProjectView(boolean enabled)
public java.awt.Color getColor(java.lang.String name)
getColor
in class FileColorManager
public java.util.Collection<java.lang.String> getColorNames()
getColorNames
in class FileColorManager
public java.awt.Color getRendererBackground(VirtualFile vFile)
getRendererBackground
in class FileColorManager
public java.awt.Color getRendererBackground(PsiFile file)
getRendererBackground
in class FileColorManager
public void addScopeColor(java.lang.String scopeName, java.lang.String colorName, boolean isProjectLevel)
addScopeColor
in class FileColorManager
public java.awt.Color getFileColor(VirtualFile file)
getFileColor
in class FileColorManager
public java.awt.Color getScopeColor(java.lang.String scopeName)
getScopeColor
in class FileColorManager
public boolean isShared(java.lang.String scopeName)
isShared
in class FileColorManager
public Project getProject()
getProject
in class FileColorManager
public java.util.List<com.intellij.ui.tabs.FileColorConfiguration> getApplicationLevelConfigurations()
public java.util.List<com.intellij.ui.tabs.FileColorConfiguration> getProjectLevelConfigurations()
public static java.lang.String getColorName(java.awt.Color color)