Examples of AttributesDescriptor


Examples of com.intellij.openapi.options.colors.AttributesDescriptor

import javax.swing.Icon;

public class SQLColorSettingsPage extends DBLColorSettingsPage {

    public SQLColorSettingsPage() {
        attributeDescriptors.add(new AttributesDescriptor("Line Comment", SQLTextAttributesKeys.LINE_COMMENT));
        attributeDescriptors.add(new AttributesDescriptor("Block Comment", SQLTextAttributesKeys.BLOCK_COMMENT));
        attributeDescriptors.add(new AttributesDescriptor("String", SQLTextAttributesKeys.STRING));
        attributeDescriptors.add(new AttributesDescriptor("Number", SQLTextAttributesKeys.NUMBER));
        attributeDescriptors.add(new AttributesDescriptor("Alias", SQLTextAttributesKeys.ALIAS));
        attributeDescriptors.add(new AttributesDescriptor("Identifier", SQLTextAttributesKeys.IDENTIFIER));
        attributeDescriptors.add(new AttributesDescriptor("Quoted Identifier", SQLTextAttributesKeys.QUOTED_IDENTIFIER));
        attributeDescriptors.add(new AttributesDescriptor("Keyword", SQLTextAttributesKeys.KEYWORD));
        attributeDescriptors.add(new AttributesDescriptor("Function", SQLTextAttributesKeys.FUNCTION));
        attributeDescriptors.add(new AttributesDescriptor("Parameter", SQLTextAttributesKeys.PARAMETER));
        attributeDescriptors.add(new AttributesDescriptor("DataType", SQLTextAttributesKeys.DATA_TYPE));
        attributeDescriptors.add(new AttributesDescriptor("Parenthesis", SQLTextAttributesKeys.PARENTHESIS));
        attributeDescriptors.add(new AttributesDescriptor("Bracket", SQLTextAttributesKeys.BRACKET));
        attributeDescriptors.add(new AttributesDescriptor("Operator", SQLTextAttributesKeys.OPERATOR));
        attributeDescriptors.add(new AttributesDescriptor("Execution Variable", SQLTextAttributesKeys.VARIABLE));
        attributeDescriptors.add(new AttributesDescriptor("Procedural Block", SQLTextAttributesKeys.CHAMELEON));
    }
View Full Code Here

Examples of com.intellij.openapi.options.colors.AttributesDescriptor

import javax.swing.Icon;

public class PSQLColorSettingsPage extends DBLColorSettingsPage {
    public PSQLColorSettingsPage() {
        attributeDescriptors.add(new AttributesDescriptor("Line Comment", PSQLTextAttributesKeys.LINE_COMMENT));
        attributeDescriptors.add(new AttributesDescriptor("Block Comment", PSQLTextAttributesKeys.BLOCK_COMMENT));
        attributeDescriptors.add(new AttributesDescriptor("String Literal", PSQLTextAttributesKeys.STRING));
        attributeDescriptors.add(new AttributesDescriptor("Numeric Literal", PSQLTextAttributesKeys.NUMBER));
        attributeDescriptors.add(new AttributesDescriptor("Alias", PSQLTextAttributesKeys.ALIAS));
        attributeDescriptors.add(new AttributesDescriptor("Identifier", PSQLTextAttributesKeys.IDENTIFIER));
        attributeDescriptors.add(new AttributesDescriptor("Quoted Identifier", PSQLTextAttributesKeys.QUOTED_IDENTIFIER));
        attributeDescriptors.add(new AttributesDescriptor("Keyword", PSQLTextAttributesKeys.KEYWORD));
        attributeDescriptors.add(new AttributesDescriptor("Function", PSQLTextAttributesKeys.FUNCTION));
        attributeDescriptors.add(new AttributesDescriptor("DataType", PSQLTextAttributesKeys.DATA_TYPE));
        attributeDescriptors.add(new AttributesDescriptor("Parenthesis", PSQLTextAttributesKeys.PARENTHESIS));
        attributeDescriptors.add(new AttributesDescriptor("Exception", PSQLTextAttributesKeys.EXCEPTION));
        attributeDescriptors.add(new AttributesDescriptor("Bracket", PSQLTextAttributesKeys.BRACKET));
        attributeDescriptors.add(new AttributesDescriptor("Operator", PSQLTextAttributesKeys.OPERATOR));
    }
View Full Code Here

Examples of com.intellij.openapi.options.colors.AttributesDescriptor

    private static final ColorDescriptor[] EMPTY_COLOR_DESCRIPTOR_ARRAY = new ColorDescriptor[]{};

    private final Set<AttributesDescriptor> attributeDescriptors = new HashSet<AttributesDescriptor>();

    public JFlexColorPage() {
        attributeDescriptors.add(new AttributesDescriptor("Angle brackets", JFlexHighlighterColors.ANGLE_BRACKETS));
        attributeDescriptors.add(new AttributesDescriptor("Brackets", JFlexHighlighterColors.BRACKETS));
        attributeDescriptors.add(new AttributesDescriptor("Comma", JFlexHighlighterColors.COMMA));
        attributeDescriptors.add(new AttributesDescriptor("Braces", JFlexHighlighterColors.BRACES));
        attributeDescriptors.add(new AttributesDescriptor("Parenths", JFlexHighlighterColors.PARENTHS));
        attributeDescriptors.add(new AttributesDescriptor("Comment", JFlexHighlighterColors.COMMENT));
        attributeDescriptors.add(new AttributesDescriptor("Java code", JFlexHighlighterColors.JAVA_CODE));
        attributeDescriptors.add(new AttributesDescriptor("Macros", JFlexHighlighterColors.MACROS));
        attributeDescriptors.add(new AttributesDescriptor("Macros reference", JFlexHighlighterColors.MACROS_REF));
        attributeDescriptors.add(new AttributesDescriptor("Operator", JFlexHighlighterColors.OPERATION_SIGN));
        attributeDescriptors.add(new AttributesDescriptor("Option", JFlexHighlighterColors.OPTION_BACKGROUND));
        attributeDescriptors.add(new AttributesDescriptor("Option keyword", JFlexHighlighterColors.OPTION_KEYWORD));
        attributeDescriptors.add(new AttributesDescriptor("Option parameter", JFlexHighlighterColors.OPTION_PARAMETER));
        attributeDescriptors.add(new AttributesDescriptor("Option sign", JFlexHighlighterColors.OPTION_SIGN));
        attributeDescriptors.add(new AttributesDescriptor("RegExp", JFlexHighlighterColors.REGEXP_BACKGROUND));
        attributeDescriptors.add(new AttributesDescriptor("RegExp class symbol", JFlexHighlighterColors.REGEXP_CLASS_SYMBOL));
        attributeDescriptors.add(new AttributesDescriptor("RegExp symbol", JFlexHighlighterColors.REGEXP_SYMBOL));
        attributeDescriptors.add(new AttributesDescriptor("Section sign", JFlexHighlighterColors.SECTION_SIGN));
        attributeDescriptors.add(new AttributesDescriptor("State reference", JFlexHighlighterColors.STATE_REF));
        attributeDescriptors.add(new AttributesDescriptor("String", JFlexHighlighterColors.STRING));
    }
View Full Code Here

Examples of com.intellij.openapi.options.colors.AttributesDescriptor

public class DataGridColorSettingsPage implements ColorSettingsPage {
    protected final List<AttributesDescriptor> attributeDescriptors = new ArrayList<AttributesDescriptor>();
    protected final List<ColorDescriptor> colorDescriptors = new ArrayList<ColorDescriptor>();

    public DataGridColorSettingsPage() {
        attributeDescriptors.add(new AttributesDescriptor("Plain Data", DataGridTextAttributesKeys.PLAIN_DATA));
        attributeDescriptors.add(new AttributesDescriptor("Modified Data", DataGridTextAttributesKeys.MODIFIED_DATA));
        attributeDescriptors.add(new AttributesDescriptor("Deleted Data", DataGridTextAttributesKeys.DELETED_DATA));
        attributeDescriptors.add(new AttributesDescriptor("Error Data", DataGridTextAttributesKeys.ERROR_DATA));
        attributeDescriptors.add(new AttributesDescriptor("Readonly Data", DataGridTextAttributesKeys.READONLY_DATA));
        attributeDescriptors.add(new AttributesDescriptor("Loading Data", DataGridTextAttributesKeys.LOADING_DATA));
        attributeDescriptors.add(new AttributesDescriptor("Primary Key", DataGridTextAttributesKeys.PRIMARY_KEY));
        attributeDescriptors.add(new AttributesDescriptor("Foreign Key", DataGridTextAttributesKeys.FOREIGN_KEY));
        attributeDescriptors.add(new AttributesDescriptor("Selection", DataGridTextAttributesKeys.SELECTION));
        colorDescriptors.add(new ColorDescriptor("Caret Row", DataGridTextAttributesKeys.CARET_ROW_BACKGROUND, ColorDescriptor.Kind.BACKGROUND));
    }
View Full Code Here

Examples of com.intellij.openapi.options.colors.AttributesDescriptor

    /** Build a new instance of {@link MarkdownColorSettingsPage}. */
    public MarkdownColorSettingsPage() {

        // Populate attribute descriptors.
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.text"),
                MarkdownHighlighterColors.TEXT_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.bold"),
                MarkdownHighlighterColors.BOLD_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                                         MarkdownBundle.message("markdown.editor.colorsettingspage.italic"),
                                         MarkdownHighlighterColors.ITALIC_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                                         MarkdownBundle.message("markdown.editor.colorsettingspage.strikethrough"),
                                         MarkdownHighlighterColors.STRIKETHROUGH_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.explicit-link"),
                MarkdownHighlighterColors.EXPLICIT_LINK_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.image"),
                MarkdownHighlighterColors.IMAGE_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.reference-image"),
                MarkdownHighlighterColors.REFERENCE_IMAGE_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.header-level-1"),
                MarkdownHighlighterColors.HEADER_LEVEL_1_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.header-level-2"),
                MarkdownHighlighterColors.HEADER_LEVEL_2_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.header-level-3"),
                MarkdownHighlighterColors.HEADER_LEVEL_3_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.header-level-4"),
                MarkdownHighlighterColors.HEADER_LEVEL_4_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.header-level-5"),
                MarkdownHighlighterColors.HEADER_LEVEL_5_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.header-level-6"),
                MarkdownHighlighterColors.HEADER_LEVEL_6_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.code"),
                MarkdownHighlighterColors.CODE_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.quote"),
                MarkdownHighlighterColors.QUOTE_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.table"),
                MarkdownHighlighterColors.TABLE_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.hrule"),
                MarkdownHighlighterColors.HRULE_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.special-text"),
                MarkdownHighlighterColors.SPECIAL_TEXT_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.reference-link"),
                MarkdownHighlighterColors.REFERENCE_LINK_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.wiki-link"),
                MarkdownHighlighterColors.WIKI_LINK_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.auto-link"),
                MarkdownHighlighterColors.AUTO_LINK_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.mail-link"),
                MarkdownHighlighterColors.MAIL_LINK_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.verbatim"),
                MarkdownHighlighterColors.VERBATIM_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.blockquote"),
                MarkdownHighlighterColors.BLOCK_QUOTE_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.bullet-list"),
                MarkdownHighlighterColors.BULLET_LIST_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.ordered-list"),
                MarkdownHighlighterColors.ORDERED_LIST_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.list-item"),
                MarkdownHighlighterColors.LIST_ITEM_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.definition-list"),
                MarkdownHighlighterColors.DEFINITION_LIST_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.definition"),
                MarkdownHighlighterColors.DEFINITION_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.definition-term"),
                MarkdownHighlighterColors.DEFINITION_TERM_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.table-body"),
                MarkdownHighlighterColors.TABLE_BODY_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.table-cell"),
                MarkdownHighlighterColors.TABLE_CELL_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.table-column"),
                MarkdownHighlighterColors.TABLE_COLUMN_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.table-row"),
                MarkdownHighlighterColors.TABLE_ROW_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.table-caption"),
                MarkdownHighlighterColors.TABLE_CAPTION_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.table-header"),
                MarkdownHighlighterColors.TABLE_HEADER_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.html-block"),
                MarkdownHighlighterColors.HTML_BLOCK_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.inline-html"),
                MarkdownHighlighterColors.INLINE_HTML_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.reference"),
                MarkdownHighlighterColors.REFERENCE_ATTR_KEY)
        );
        attributeDescriptors.add(new AttributesDescriptor(
                MarkdownBundle.message("markdown.editor.colorsettingspage.abbreviation"),
                MarkdownHighlighterColors.ABBREVIATION_ATTR_KEY)
        );
    }
View Full Code Here

Examples of com.intellij.openapi.options.colors.AttributesDescriptor

    private static final String SAMPLE = extractIdeaScript();

    private final Set<AttributesDescriptor> attributeDescriptors = new HashSet<AttributesDescriptor>();

    public BatchColorPage() {
        attributeDescriptors.add(new AttributesDescriptor("Brackets", BatchHighlighterColors.BRACKETS));
        attributeDescriptors.add(new AttributesDescriptor("Braces", BatchHighlighterColors.BRACES));
        attributeDescriptors.add(new AttributesDescriptor("Parenthesis", BatchHighlighterColors.PARENTHS));
        attributeDescriptors.add(new AttributesDescriptor("Comment", BatchHighlighterColors.COMMENT));
        attributeDescriptors.add(new AttributesDescriptor("Operator", BatchHighlighterColors.OPERATION_SIGN));
        attributeDescriptors.add(new AttributesDescriptor("Keyword", BatchHighlighterColors.KEYWORD));
        attributeDescriptors.add(new AttributesDescriptor("String", BatchHighlighterColors.STRING));
        attributeDescriptors.add(new AttributesDescriptor("Number", BatchHighlighterColors.NUMBER));
        attributeDescriptors.add(new AttributesDescriptor("Label", BatchHighlighterColors.LABEL));
        attributeDescriptors.add(new AttributesDescriptor("Label Reference", BatchHighlighterColors.LABEL_REFERENCE));
        attributeDescriptors.add(new AttributesDescriptor("Environment Variable", BatchHighlighterColors.ENVIRONMENT_VARIABLE));
        attributeDescriptors.add(new AttributesDescriptor("Environment Definition", BatchHighlighterColors.ENVIRONMENT_VARIABLE_DEFINITION));
        attributeDescriptors.add(new AttributesDescriptor("Variable", BatchHighlighterColors.VARIABLE));
        attributeDescriptors.add(new AttributesDescriptor("Expression", BatchHighlighterColors.EXPRESSION));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.