diff options
author | Etienne Bergeron | 2013-11-16 06:48:36 +0000 |
---|---|---|
committer | Patrick Tasse | 2013-11-22 20:49:41 +0000 |
commit | 594993668f350a335dfbd24cd33e89b46d0862de (patch) | |
tree | 6b49aa2ed4f68dcfcb9945a3e09a039871408773 | |
parent | c572a6bb5456265a0708441aa694cb05f4863798 (diff) | |
download | org.eclipse.linuxtools-594993668f350a335dfbd24cd33e89b46d0862de.tar.gz org.eclipse.linuxtools-594993668f350a335dfbd24cd33e89b46d0862de.tar.xz org.eclipse.linuxtools-594993668f350a335dfbd24cd33e89b46d0862de.zip |
Avoid flickering redraw of TmfEventsTable on open.
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>
-rw-r--r-- | lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java index dffa8f99a2..33a8365989 100644 --- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java +++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java @@ -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; } |