1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

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.

This commit is contained in:
Ken Ryall 2006-08-28 19:02:59 +00:00
parent 12fd9d96f7
commit 75c4506a6e

View file

@ -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);
}
}
}
/**