use of com.intellij.ui.SimpleTextAttributes in project intellij-plugins by JetBrains.
the class FlashUmlElementManager method getMethodPresentableName.
private SimpleColoredText getMethodPresentableName(JSFunction method) {
int style = SimpleTextAttributes.STYLE_PLAIN;
if (method.isDeprecated())
style |= SimpleTextAttributes.STYLE_STRIKEOUT;
if (!method.isPhysical())
style |= SimpleTextAttributes.STYLE_ITALIC;
final SimpleColoredText text = new SimpleColoredText();
text.append(getMethodText(method), new SimpleTextAttributes(style, getFGColor()));
return text;
}
use of com.intellij.ui.SimpleTextAttributes in project intellij-plugins by StepicOrg.
the class PresentationDataUtils method setAttributes.
private static void setAttributes(@NotNull PresentationData data, String text, JBColor color, Icon icon, boolean deleted) {
data.clearText();
int textStyle = SimpleTextAttributes.STYLE_PLAIN;
if (deleted) {
textStyle |= SimpleTextAttributes.STYLE_STRIKEOUT;
}
data.addText(text, new SimpleTextAttributes(textStyle, color));
data.setIcon(icon);
data.setPresentableText(text);
}
Aggregations