Example usage for com.intellij.openapi.options.colors ColorDescriptor getKey

List of usage examples for com.intellij.openapi.options.colors ColorDescriptor getKey

Introduction

In this page you can find the example usage for com.intellij.openapi.options.colors ColorDescriptor getKey.

Prototype

@SuppressWarnings("RedundantMethodOverride") 
    @NotNull
    @Override
    public ColorKey getKey() 

Source Link

Usage

From source file:com.chrisrm.idea.config.MTFileColorsPage.java

License:Open Source License

public static void apply() {
    final EditorColorsScheme defaultScheme = getCurrentSchemeForCurrentUITheme();
    final EditorColorsScheme globalScheme = EditorColorsManagerImpl.getInstance().getGlobalScheme();
    for (final ColorDescriptor descriptor : DESCRIPTORS) {
        defaultScheme.setColor(descriptor.getKey(), globalScheme.getColor(descriptor.getKey()));
    }// w  w  w .j  av a  2  s  .c o m
    ((AbstractColorsScheme) defaultScheme).setSaveNeeded(true);

    for (final Project project : ProjectManager.getInstance().getOpenProjects()) {
        FileStatusManager.getInstance(project).fileStatusesChanged();
    }
}