use of com.intellij.ui.SimpleColoredText 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;
}
Aggregations