本文整理汇总了Java中com.intellij.openapi.options.colors.ColorDescriptor类的典型用法代码示例。如果您正苦于以下问题:Java ColorDescriptor类的具体用法?Java ColorDescriptor怎么用?Java ColorDescriptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ColorDescriptor类属于com.intellij.openapi.options.colors包,在下文中一共展示了ColorDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
@Override
public ColorDescriptor[] getColorDescriptors() {
log.info("Returning empty Color Descriptor.");
return ColorDescriptor.EMPTY_ARRAY;
}
示例2: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@Override
@NotNull
public ColorDescriptor[] getColorDescriptors() {
// todo: make preview for it
final ColorKey[] colorKeys = XmlTagTreeHighlightingColors.getColorKeys();
final ColorDescriptor[] colorDescriptors = new ColorDescriptor[colorKeys.length];
for (int i = 0; i < colorDescriptors.length; i++) {
colorDescriptors[i] = new ColorDescriptor(OptionsBundle.message("options.html.attribute.descriptor.tag.tree", i + 1),
colorKeys[i], ColorDescriptor.Kind.BACKGROUND);
}
return colorDescriptors;
}
示例3: apply
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
public static void apply() {
final EditorColorsScheme defaultScheme = getCurrentSchemeForCurrentUITheme();
final EditorColorsScheme globalScheme = EditorColorsManagerImpl.getInstance().getGlobalScheme();
for (final ColorDescriptor descriptor : DESCRIPTORS) {
defaultScheme.setColor(descriptor.getKey(), globalScheme.getColor(descriptor.getKey()));
}
((AbstractColorsScheme) defaultScheme).setSaveNeeded(true);
for (final Project project : ProjectManager.getInstance().getOpenProjects()) {
FileStatusManager.getInstance(project).fileStatusesChanged();
}
}
示例4: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
@Override
public ColorDescriptor[] getColorDescriptors() {
return new ColorDescriptor[]{
new ColorDescriptor(MaterialThemeBundle.message("MTColorForm.background"), null, null)
};
}
示例5: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
public ColorDescriptor[] getColorDescriptors() {
// todo: make preview for it
final ColorKey[] colorKeys = XmlTagTreeHighlightingColors.getColorKeys();
final ColorDescriptor[] colorDescriptors = new ColorDescriptor[colorKeys.length];
for (int i = 0; i < colorDescriptors.length; i++) {
colorDescriptors[i] = new ColorDescriptor(OptionsBundle.message("options.html.attribute.descriptor.tag.tree", i + 1),
colorKeys[i], ColorDescriptor.Kind.BACKGROUND);
}
return colorDescriptors;
}
示例6: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@Override
@Nonnull
public ColorDescriptor[] getColorDescriptors() {
return new ColorDescriptor[] {
new ColorDescriptor(OptionsBundle.message("options.java.attribute.descriptor.recursive.call"), DebuggerColors.RECURSIVE_CALL_ATTRIBUTES, ColorDescriptor.Kind.BACKGROUND)
};
}
示例7: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
@Override
public ColorDescriptor[] getColorDescriptors() {
return ColorDescriptor.EMPTY_ARRAY;
}
示例8: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
@Override
public ColorDescriptor[] getColorDescriptors() {
return ColorDescriptor.EMPTY_ARRAY;
}
示例9: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
@Override
public ColorDescriptor[] getColorDescriptors() {
return ColorDescriptor.EMPTY_ARRAY;
}
示例10: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
@Override
public ColorDescriptor[] getColorDescriptors() {
return new ColorDescriptor[0];
}
示例11: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@Override
@NotNull
public ColorDescriptor[] getColorDescriptors() {
return new ColorDescriptor[0];
}
示例12: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
public ColorDescriptor[] getColorDescriptors() {
return ColorDescriptor.EMPTY_ARRAY;
}
示例13: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
/**
* Method returns empty color descriptors array, no information is available
*
* @return empty array
*/
@NotNull
@Override
public ColorDescriptor[] getColorDescriptors() {
return ColorDescriptor.EMPTY_ARRAY;
}
示例14: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@Override
@NotNull
public ColorDescriptor[] getColorDescriptors() {
return ColorDescriptor.EMPTY_ARRAY;
}
示例15: getColorDescriptors
import com.intellij.openapi.options.colors.ColorDescriptor; //导入依赖的package包/类
@NotNull
public ColorDescriptor[] getColorDescriptors() {
return new ColorDescriptor[] {
new ColorDescriptor(OptionsBundle.message("options.java.attribute.descriptor.recursive.call"), DebuggerColors.RECURSIVE_CALL_ATTRIBUTES, ColorDescriptor.Kind.BACKGROUND)
};
}