Example usage for com.intellij.openapi.options.colors ColorSettingsPage EP_NAME

List of usage examples for com.intellij.openapi.options.colors ColorSettingsPage EP_NAME

Introduction

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

Prototype

ExtensionPointName EP_NAME

To view the source code for com.intellij.openapi.options.colors ColorSettingsPage EP_NAME.

Click Source Link

Usage

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

License:Apache License

private static boolean isInspectionColorsPage(ColorAndFontDescriptorsProvider provider) {
    // the first registered page implementing InspectionColorSettingsPage
    // gets the inspection attribute descriptors added to its list
    if (!(provider instanceof InspectionColorSettingsPage))
        return false;
    for (ColorSettingsPage settingsPage : Extensions.getExtensions(ColorSettingsPage.EP_NAME)) {
        if (settingsPage == provider)
            break;
        if (settingsPage instanceof InspectionColorSettingsPage)
            return false;
    }//from  w  ww  . ja  va  2s .  c  o  m
    return true;
}