From 75c4506a6e093359a3acc5a69f30eaf9f7ea8993 Mon Sep 17 00:00:00 2001 From: Ken Ryall Date: Mon, 28 Aug 2006 19:02:59 +0000 Subject: [PATCH] More for bug 106540: When the use toggles the toolbar item to enable the feature, immediately select and reveal the item corresponding to the active editor. --- .../src/org/eclipse/cdt/internal/ui/cview/CView.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/CView.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/CView.java index e50d7a08578..32bd26a01a2 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/CView.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/CView.java @@ -872,6 +872,12 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha public void setLinkingEnabled(boolean enable) { CPluginPreferencePage.setLinkingEnabled(enable); + if (enable) { + IEditorPart editor = this.getSite().getPage().getActiveEditor(); + if (editor != null) { + editorActivated(editor); + } + } } /**