Java Code Examples for com.intellij.openapi.editor.colors.TextAttributesKey#createTextAttributesKey()
The following examples show how to use
com.intellij.openapi.editor.colors.TextAttributesKey#createTextAttributesKey() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ColorManager.java From saros with GNU General Public License v2.0 | 5 votes |
private IdentifiableColorKeys(final int id) { this.id = id; final String selectionKeyName = SELECTION_KEY_PREFIX + id; final String contributionKeyName = CONTRIBUTION_KEY_PREFIX + id; this.selectionColorKey = TextAttributesKey.createTextAttributesKey(selectionKeyName, HighlighterColors.TEXT); this.contributionColorKey = TextAttributesKey.createTextAttributesKey(contributionKeyName, HighlighterColors.TEXT); }
Example 2
Source File: RainbowHighlighter.java From consulo with Apache License 2.0 | 5 votes |
@Nonnull public TextAttributesKey[] getRainbowTempKeys() { TextAttributesKey[] keys = new TextAttributesKey[myRainbowColors.length]; for (int i = 0; i < myRainbowColors.length; ++i) { //noinspection deprecation TextAttributesKey key = TextAttributesKey.createTextAttributesKey(RAINBOW_TEMP_PREF + i, new TextAttributes()); key.getDefaultAttributes().setForegroundColor(myRainbowColors[i]); keys[i] = key; } return keys; }
Example 3
Source File: BuildSyntaxHighlighter.java From intellij with Apache License 2.0 | 4 votes |
private static TextAttributesKey key(String name, TextAttributesKey fallbackKey) { return TextAttributesKey.createTextAttributesKey(name, fallbackKey); }
Example 4
Source File: UnreachableAnnotation.java From glsl4idea with GNU Lesser General Public License v3.0 | 4 votes |
public UnreachableAnnotation() { unreachableAttributes = TextAttributesKey.createTextAttributesKey("GLSL.UNREACHABLE", CodeInsightColors.NOT_USED_ELEMENT_ATTRIBUTES); }