public final class EditorColorsManagerImpl extends EditorColorsManager implements PersistentStateComponent<com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.State>
COLOR_SCHEME_FILE_EXTENSION, DEFAULT_SCHEME_NAME, TOPIC
Constructor and Description |
---|
EditorColorsManagerImpl() |
EditorColorsManagerImpl(SchemeManagerFactory schemeManagerFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addColorsScheme(EditorColorsScheme scheme) |
EditorColorsScheme [] |
getAllSchemes() |
TextAttributes |
getDefaultAttributes(TextAttributesKey key) |
EditorColorsScheme |
getGlobalScheme() |
EditorColorsScheme |
getScheme(java.lang.String schemeName) |
EditorColorsScheme |
getSchemeForCurrentUITheme() |
<any> |
getSchemeManager() |
com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.State |
getState() |
static java.nio.file.Path |
getTempSchemeOriginalFilePath(EditorColorsScheme scheme) |
void |
handleThemeAdded(UITheme theme) |
void |
handleThemeRemoved(UITheme theme) |
boolean |
isDefaultScheme(EditorColorsScheme scheme) |
static boolean |
isTempScheme(EditorColorsScheme scheme) |
boolean |
isUseOnlyMonospacedFonts() |
void |
loadState(com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.State state)
This method is called when new component state is loaded.
|
void |
removeAllSchemes() |
void |
resolveSchemeParent(EditorColorsScheme scheme)
Resolves a temporary link to a bundled scheme using bundled scheme's name.
|
void |
schemeChangedOrSwitched(EditorColorsScheme newScheme) |
void |
setGlobalScheme(EditorColorsScheme scheme) |
void |
setGlobalScheme(EditorColorsScheme scheme,
boolean processChangeSynchronously) |
static void |
setTempScheme(EditorColorsScheme scheme,
VirtualFile originalSchemeFile) |
void |
setUseOnlyMonospacedFonts(boolean value) |
addEditorColorsListener, addEditorColorsListener, getInstance, isDarkEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public EditorColorsManagerImpl()
public EditorColorsManagerImpl(SchemeManagerFactory schemeManagerFactory)
public void resolveSchemeParent(EditorColorsScheme scheme)
EditorColorsManager
resolveSchemeParent
in class EditorColorsManager
scheme
- The scheme with unresolved parent. The call will be ignored for other schemes.public void schemeChangedOrSwitched(EditorColorsScheme newScheme)
public void handleThemeAdded(UITheme theme)
public void handleThemeRemoved(UITheme theme)
public TextAttributes getDefaultAttributes(TextAttributesKey key)
public void addColorsScheme(EditorColorsScheme scheme)
addColorsScheme
in class EditorColorsManager
public void removeAllSchemes()
removeAllSchemes
in class EditorColorsManager
public EditorColorsScheme [] getAllSchemes()
getAllSchemes
in class EditorColorsManager
public void setGlobalScheme(EditorColorsScheme scheme)
setGlobalScheme
in class EditorColorsManager
public void setGlobalScheme(EditorColorsScheme scheme, boolean processChangeSynchronously)
public EditorColorsScheme getGlobalScheme()
getGlobalScheme
in class EditorColorsManager
public EditorColorsScheme getScheme(java.lang.String schemeName)
getScheme
in class EditorColorsManager
public void setUseOnlyMonospacedFonts(boolean value)
setUseOnlyMonospacedFonts
in class EditorColorsManager
public boolean isUseOnlyMonospacedFonts()
isUseOnlyMonospacedFonts
in class EditorColorsManager
public com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.State getState()
getState
in interface PersistentStateComponent<com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.State>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.State state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.State>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public boolean isDefaultScheme(EditorColorsScheme scheme)
isDefaultScheme
in class EditorColorsManager
public EditorColorsScheme getSchemeForCurrentUITheme()
getSchemeForCurrentUITheme
in class EditorColorsManager
public <any> getSchemeManager()
public static boolean isTempScheme(EditorColorsScheme scheme)
public static java.nio.file.Path getTempSchemeOriginalFilePath(EditorColorsScheme scheme)
public static void setTempScheme(EditorColorsScheme scheme, VirtualFile originalSchemeFile)