Example usage for com.intellij.openapi.options.colors ColorAndFontDescriptorsProvider getAttributeDescriptors

List of usage examples for com.intellij.openapi.options.colors ColorAndFontDescriptorsProvider getAttributeDescriptors

Introduction

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

Prototype

AttributesDescriptor @NotNull [] getAttributeDescriptors();

Source Link

Document

Returns the list of descriptors specifying the TextAttributesKey instances for which colors are specified in the page.

Usage

From source file:com.intellij.application.options.colors.ColorSettingsUtil.java

License:Apache License

public static List<AttributesDescriptor> getAllAttributeDescriptors(ColorAndFontDescriptorsProvider provider) {
    List<AttributesDescriptor> result = new ArrayList<AttributesDescriptor>();
    Collections.addAll(result, provider.getAttributeDescriptors());
    if (isInspectionColorsPage(provider)) {
        addInspectionSeverityAttributes(result);
    }//from   w w  w  .j  a  va2 s .c o  m
    return result;
}