2010-11-05 Francois Chouinard <fchouinard@gmail.com> Fix for Bug329473
authorFrancois Chouinard <fchouinard@gmail.com>
Fri, 5 Nov 2010 18:23:05 +0000 (18:23 +0000)
committerFrancois Chouinard <fchouinard@gmail.com>
Fri, 5 Nov 2010 18:23:05 +0000 (18:23 +0000)
* src/org/eclipse/linuxtools/lttng/ui/views/controlflow/ControlFlowView.java: Made the call to updateScroll() asynchronous

org.eclipse.linuxtools.lttng.ui/ChangeLog
org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/views/controlflow/ControlFlowView.java

index a977b634adbef072094634c1601fc3b93ec23e95..de18dc32d78d55f168945c26d4d532a9ece3ad0d 100644 (file)
@@ -1,3 +1,7 @@
+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 
index 89bcc59cabafce9b7b31cc5a92a06c6cd16ce5d5..abc7b479f54cc3c1c1e9e0a05cc5421ee29d7bfd 100644 (file)
@@ -929,11 +929,16 @@ public class ControlFlowView extends AbsTimeUpdateView implements
 
                                                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);
+                                }
+                            }
+                        });
                                        }
                                }
                        });
This page took 0.036577 seconds and 5 git commands to generate.