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:
parent
12fd9d96f7
commit
75c4506a6e
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue