本文整理汇总了Java中com.intellij.openapi.fileTypes.SyntaxHighlighterBase.pack方法的典型用法代码示例。如果您正苦于以下问题:Java SyntaxHighlighterBase.pack方法的具体用法?Java SyntaxHighlighterBase.pack怎么用?Java SyntaxHighlighterBase.pack使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.fileTypes.SyntaxHighlighterBase
的用法示例。
在下文中一共展示了SyntaxHighlighterBase.pack方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@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;
}
示例2: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@Override
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, keys1.get(tokenType));
}
示例3: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
return SyntaxHighlighterBase.pack(ATTRIBUTES.get(tokenType));
}
示例4: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@Override
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, pack(keys1.get(tokenType), keys2.get(tokenType)));
}
示例5: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
return SyntaxHighlighterBase.pack(keys1.get(tokenType), keys2.get(tokenType));
}
示例6: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@Nonnull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
return SyntaxHighlighterBase.pack(keys1.get(tokenType), keys2.get(tokenType));
}
示例7: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@NotNull
@Override
public TextAttributesKey[] getTokenHighlights(IElementType iElementType) {
return SyntaxHighlighterBase.pack(keys1.get(iElementType), keys2.get(iElementType));
}
示例8: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@Override
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType)
{
return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, pack(keys1.get(tokenType), keys2.get(tokenType)));
}
示例9: getTokenHighlights
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入方法依赖的package包/类
@NotNull
public TextAttributesKey[] getTokenHighlights(final IElementType tokenType)
{
return SyntaxHighlighterBase.pack(ourMap.get(tokenType), VELOCITY_SCRIPTING_BACKGROUND);
}