本文整理汇总了Java中com.intellij.openapi.editor.colors.ColorKey.createColorKey方法的典型用法代码示例。如果您正苦于以下问题:Java ColorKey.createColorKey方法的具体用法?Java ColorKey.createColorKey怎么用?Java ColorKey.createColorKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.editor.colors.ColorKey
的用法示例。
在下文中一共展示了ColorKey.createColorKey方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getColorKeys
import com.intellij.openapi.editor.colors.ColorKey; //导入方法依赖的package包/类
@NotNull
public static ColorKey[] getColorKeys()
{
final int levelCount = XmlEditorOptions.getInstance().getTagTreeHighlightingLevelCount();
if(ourColorKeys == null || ourColorKeys.length != levelCount)
{
ourColorKeys = new ColorKey[levelCount];
for(int i = 0; i < ourColorKeys.length; i++)
{
ourColorKeys[i] = ColorKey.createColorKey("HTML_TAG_TREE_LEVEL" + i, DEFAULT_COLORS[i % DEFAULT_COLORS.length]);
}
}
return ourColorKeys;
}
示例2: getColorKeys
import com.intellij.openapi.editor.colors.ColorKey; //导入方法依赖的package包/类
@NotNull
public static ColorKey[] getColorKeys() {
final int levelCount = WebEditorOptions.getInstance().getTagTreeHighlightingLevelCount();
if (ourColorKeys == null || ourColorKeys.length != levelCount) {
ourColorKeys = new ColorKey[levelCount];
for (int i = 0; i < ourColorKeys.length; i++) {
ourColorKeys[i] = ColorKey.createColorKey("HTML_TAG_TREE_LEVEL" + i, DEFAULT_COLORS[i % DEFAULT_COLORS.length]);
}
}
return ourColorKeys;
}
示例3: createFileStatus
import com.intellij.openapi.editor.colors.ColorKey; //导入方法依赖的package包/类
public synchronized FileStatus createFileStatus(@NonNls @NotNull String id, @NotNull String description, Color color) {
FileStatusImpl result = new FileStatusImpl(id, ColorKey.createColorKey("FILESTATUS_" + id, color), description);
myStatuses.add(result);
return result;
}
示例4: createOnlyColorForFileStatus
import com.intellij.openapi.editor.colors.ColorKey; //导入方法依赖的package包/类
public synchronized FileStatus createOnlyColorForFileStatus(@NonNls @NotNull String id, final Color color) {
FileStatus result = new FileStatusImpl.OnlyColorFileStatus(id, ColorKey.createColorKey("FILESTATUS_" + id, color), null);
myStatuses.add(result);
return result;
}
示例5: createFileStatus
import com.intellij.openapi.editor.colors.ColorKey; //导入方法依赖的package包/类
public synchronized FileStatus createFileStatus(@NonNls String id, String description, Color color) {
FileStatusImpl result = new FileStatusImpl(id, ColorKey.createColorKey("FILESTATUS_" + id, color), description);
myStatuses.add(result);
return result;
}
示例6: createOnlyColorForFileStatus
import com.intellij.openapi.editor.colors.ColorKey; //导入方法依赖的package包/类
public synchronized FileStatus createOnlyColorForFileStatus(@NonNls String id, final Color color) {
FileStatus result = new FileStatusImpl.OnlyColorFileStatus(id, ColorKey.createColorKey("FILESTATUS_" + id, color), null);
myStatuses.add(result);
return result;
}
示例7: createFileStatus
import com.intellij.openapi.editor.colors.ColorKey; //导入方法依赖的package包/类
public synchronized FileStatus createFileStatus(@NonNls @Nonnull String id, @Nonnull String description, @Nullable Color color) {
FileStatusImpl result = new FileStatusImpl(id, ColorKey.createColorKey("FILESTATUS_" + id, color), description);
myStatuses.add(result);
return result;
}