1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00

Fix for 191358: when editing the same file in two editor windows, one window moves to top

This commit is contained in:
Anton Leherbauer 2007-06-08 08:56:51 +00:00
parent 5b5d40f8dd
commit e2330794b8

View file

@ -96,8 +96,10 @@ public class CContentOutlinerProvider extends BaseCElementContentProvider {
treeViewer.getControl().getDisplay().asyncExec(new Runnable() { treeViewer.getControl().getDisplay().asyncExec(new Runnable() {
public void run() { public void run() {
if (!treeViewer.getControl().isDisposed()) { if (!treeViewer.getControl().isDisposed()) {
final ISelection sel = treeViewer.getSelection(); // setting the selection here causes a secondary editor to scroll
treeViewer.setSelection(updateSelection(sel)); // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=191358
// final ISelection sel = treeViewer.getSelection();
// treeViewer.setSelection(updateSelection(sel));
treeViewer.refresh(); treeViewer.refresh();
} }
} }