Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg2012-04-17 13:48:48 -0400
committerRoland Grunberg2012-04-18 10:41:12 -0400
commita704788cb8814fe65473be272be963c187359cf3 (patch)
treee1bae59bd86bc626304d5efd7f1fc59a562f5b64 /valgrind
parent47632bcb8fff1273b816215f3cbf5b6fe4affdaa (diff)
downloadorg.eclipse.linuxtools-a704788cb8814fe65473be272be963c187359cf3.tar.gz
org.eclipse.linuxtools-a704788cb8814fe65473be272be963c187359cf3.tar.xz
org.eclipse.linuxtools-a704788cb8814fe65473be272be963c187359cf3.zip
Fix BZ #376933.
The Massif TableViewer does not seem to scroll to the selected element on Windows. This fixes this issue.
Diffstat (limited to 'valgrind')
-rw-r--r--valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java b/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java
index 17209c9cb5..a20dc1399a 100644
--- a/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java
+++ b/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java
@@ -206,7 +206,7 @@ public class ChartEditor extends EditorPart {
}
MassifSnapshot snapshot = (MassifSnapshot) viewer.getElementAt(closest);
- viewer.setSelection(new StructuredSelection(snapshot));
+ viewer.setSelection(new StructuredSelection(snapshot), true);
if (e.count == 2 && snapshot.isDetailed()) {
ChartLocationsDialog dialog = new ChartLocationsDialog(Display.getCurrent().getActiveShell());

Back to the top