@NotNull @Override public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { TextAttributesKey[] defaultTextAttributeKeys, extendedHighlighterKeys; defaultTextAttributeKeys = super.getTokenHighlights(tokenType); extendedHighlighterKeys = SyntaxHighlighterBase.pack(keys1.get(tokenType), keys2.get(tokenType)); int numKeys = defaultTextAttributeKeys.length + extendedHighlighterKeys.length; TextAttributesKey[] merged = new TextAttributesKey[numKeys]; System.arraycopy(defaultTextAttributeKeys, 0, merged, 0, defaultTextAttributeKeys.length); System.arraycopy(extendedHighlighterKeys, 0, merged, defaultTextAttributeKeys.length, extendedHighlighterKeys.length); return merged; }
public TextAttributes getAttributes(IElementType tokenType) { TextAttributes attrs = myAttributesMap.get(tokenType); if (attrs == null) { attrs = convertAttributes(SyntaxHighlighterBase.pack(myBackground, mySyntaxHighlighter.getTokenHighlights(tokenType))); myAttributesMap.put(tokenType, attrs); } return attrs; }
@Override @NotNull public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, keys1.get(tokenType)); }
@NotNull public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { return SyntaxHighlighterBase.pack(ATTRIBUTES.get(tokenType)); }
@Override @NotNull public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, pack(keys1.get(tokenType), keys2.get(tokenType))); }
@NotNull public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { return SyntaxHighlighterBase.pack(keys1.get(tokenType), keys2.get(tokenType)); }
@Nonnull public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { return SyntaxHighlighterBase.pack(keys1.get(tokenType), keys2.get(tokenType)); }
@NotNull @Override public TextAttributesKey[] getTokenHighlights(IElementType iElementType) { return SyntaxHighlighterBase.pack(keys1.get(iElementType), keys2.get(iElementType)); }
@NotNull public TextAttributesKey[] getTokenHighlights(final IElementType tokenType) { return SyntaxHighlighterBase.pack(ourMap.get(tokenType), VELOCITY_SCRIPTING_BACKGROUND); }