diff --git a/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java b/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java index 3de2928e8133..6b24a804ee35 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java @@ -290,6 +290,11 @@ public class DocumentationComponent extends JPanel implements Disposable, DataPr } } + @Override + public String getToolTipText(float x, float y, Shape allocation) { + return (String)getElement().getAttributes().getAttribute(HTML.Attribute.ALT); + } + @Override public void paint(Graphics g, Shape allocation) { viewIcon.paintIcon(null, g, allocation.getBounds().x, allocation.getBounds().y - 4);