Java Code Examples for com.intellij.ui.FileColorManager#getInstance()
The following examples show how to use
com.intellij.ui.FileColorManager#getInstance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileColorsConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@Override public JComponent createComponent() { if (myPanel == null) { myPanel = new FileColorsConfigurablePanel((FileColorManagerImpl) FileColorManager.getInstance(myProject)); } return myPanel; }
Example 2
Source File: XDebuggerFramesList.java From consulo with Apache License 2.0 | 4 votes |
public XDebuggerFrameListRenderer(@Nonnull Project project) { myColorsManager = FileColorManager.getInstance(project); }
Example 3
Source File: EditorTabColorProviderImpl.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nullable public Color getEditorTabColor(Project project, VirtualFile file) { FileColorManager colorManager = FileColorManager.getInstance(project); return colorManager.isEnabledForTabs() ? colorManager.getFileColor(file) : null; }
Example 4
Source File: EditorTabColorProviderImpl.java From consulo with Apache License 2.0 | 4 votes |
@Nullable @Override public Color getProjectViewColor(@Nonnull Project project, @Nonnull VirtualFile file) { FileColorManager colorManager = FileColorManager.getInstance(project); return colorManager.isEnabledForProjectView() ? colorManager.getFileColor(file) : null; }