Avoid flickering redraw of TmfEventsTable on open.
authorEtienne Bergeron <etienne.bergeron@gmail.com>
Sat, 16 Nov 2013 06:48:36 +0000 (01:48 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Fri, 22 Nov 2013 20:49:41 +0000 (15:49 -0500)
There is a 4 or 5 redraw of the Events table caused by the columns pack.
To avoid flickering, it's better to disable the redraw of the table.

I didn't try this fix on linux.

Change-Id: Idcfd1f5a79faee8ae0c31b268c67576ba1547760
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18648
Reviewed-by: François Doray <fdoray.eclipse@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java

index dffa8f99a280530a6d10f34d32e92856566bd863..33a8365989a4fa677ae5c0c84878a60ef087dd7d 100644 (file)
@@ -1824,6 +1824,8 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS
         if (fPackDone) {
             return;
         }
+        fTable.setRedraw(false);
+
         boolean isLinux = System.getProperty("os.name").contains("Linux") ? true : false; //$NON-NLS-1$ //$NON-NLS-2$
 
         TableColumn tableColumns[] = fTable.getColumns();
@@ -1842,6 +1844,8 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS
                 column.setWidth(headerWidth);
             }
         }
+
+        fTable.setRedraw(true);
         fPackDone = true;
     }
 
This page took 0.030489 seconds and 5 git commands to generate.