本文整理匯總了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)
};
}