* src/org/eclipse/linuxtools/lttng/ui/views/controlflow/ControlFlowView.java: Made the call to updateScroll() asynchronous
+2010-11-05 Francois Chouinard <fchouinard@gmail.com>
+
+ * src/org/eclipse/linuxtools/lttng/ui/views/controlflow/ControlFlowView.java: Made the call to updateScroll() asynchronous
+
2010-11-04 Francois Chouinard <fchouinard@gmail.com>
* src/org/eclipse/linuxtools/lttng/ui/views/project/ProjectView.java: Create an ad hoc experiment when a trace is selected
tsfviewer.resizeControls();
- // Adjust the size of the vertical scroll bar to fit the
- // contents
- if (scrollFrame != null) {
- updateScrolls(scrollFrame);
- }
+ // Adjust asynchronously the size of the vertical scroll bar to fit the
+ // contents
+ tableViewer.getTable().getDisplay().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ if ((scrollFrame != null) && (!scrollFrame.getDisplay().isDisposed())) {
+ updateScrolls(scrollFrame);
+ }
+ }
+ });
}
}
});