Search in sources :

Example 11 with SimpleColoredText

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;
}
Also used : SimpleTextAttributes(com.intellij.ui.SimpleTextAttributes) SimpleColoredText(com.intellij.ui.SimpleColoredText)

Aggregations

SimpleColoredText (com.intellij.ui.SimpleColoredText)11 SimpleTextAttributes (com.intellij.ui.SimpleTextAttributes)5 IDevice (com.android.ddmlib.IDevice)2 FlexBuildConfiguration (com.intellij.lang.javascript.flex.projectStructure.model.FlexBuildConfiguration)2 Pair (com.intellij.openapi.util.Pair)2 Test (org.junit.Test)2 HintUtil (com.intellij.codeInsight.hint.HintUtil)1 ExpressionEvaluator (com.intellij.debugger.engine.evaluation.expression.ExpressionEvaluator)1 DebuggerContextCommandImpl (com.intellij.debugger.engine.events.DebuggerContextCommandImpl)1 DebuggerContextImpl (com.intellij.debugger.impl.DebuggerContextImpl)1 DebuggerSession (com.intellij.debugger.impl.DebuggerSession)1 WatchItemDescriptor (com.intellij.debugger.ui.impl.watch.WatchItemDescriptor)1 DescriptorLabelListener (com.intellij.debugger.ui.tree.render.DescriptorLabelListener)1 LanguageConsoleView (com.intellij.execution.console.LanguageConsoleView)1 ConsoleViewImpl (com.intellij.execution.impl.ConsoleViewImpl)1 ConsoleView (com.intellij.execution.ui.ConsoleView)1 FlexModuleType (com.intellij.lang.javascript.flex.FlexModuleType)1 FlexBuildConfigurationManager (com.intellij.lang.javascript.flex.projectStructure.model.FlexBuildConfigurationManager)1 Disposable (com.intellij.openapi.Disposable)1 ActionManager (com.intellij.openapi.actionSystem.ActionManager)1