mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Fix for 191358: when editing the same file in two editor windows, one window moves to top
This commit is contained in:
parent
5b5d40f8dd
commit
e2330794b8
1 changed files with 4 additions and 2 deletions
|
@ -96,8 +96,10 @@ public class CContentOutlinerProvider extends BaseCElementContentProvider {
|
|||
treeViewer.getControl().getDisplay().asyncExec(new Runnable() {
|
||||
public void run() {
|
||||
if (!treeViewer.getControl().isDisposed()) {
|
||||
final ISelection sel = treeViewer.getSelection();
|
||||
treeViewer.setSelection(updateSelection(sel));
|
||||
// setting the selection here causes a secondary editor to scroll
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=191358
|
||||
// final ISelection sel = treeViewer.getSelection();
|
||||
// treeViewer.setSelection(updateSelection(sel));
|
||||
treeViewer.refresh();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue