1
0
Fork 0
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:
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() {
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();
}
}