From 56a098b52d9dbea206d8c3f4434268fa14657a34 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 15 Feb 2010 14:40:08 +0300 Subject: [PATCH] back/forward context for documentation (IDEA-13126) --- .../intellij/codeInsight/documentation/DocumentationComponent.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 8bcf274fd5..eecfd73bac 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java @@ -250,8 +250,12 @@ public class DocumentationComponent extends JPanel implements Disposable{ } public void setText(String text, boolean clean) { + if (clean && myElement != null) { + myBackStack.push(saveContext()); + myForwardStack.clear(); + } updateControlState(); - setDataInternal(myElement, text, new Rectangle(0, 0), true); + setDataInternal(myElement, text, new Rectangle(0, 0), !clean); if (clean) { myIsEmpty = false; } -- 2.11.4.GIT