tmf: Add a handler for UI refresh operations
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 4 Apr 2014 21:47:36 +0000 (17:47 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 14 Jul 2014 19:51:33 +0000 (15:51 -0400)
commit9c91c3172cc4782527917198d32ee3f20b912f9a
treec3c3f14243684152debdcbe3fa77fa335890bb65
parent5255c03037737fc58839e519adf6e595e0f778ef
tmf: Add a handler for UI refresh operations

To avoid having many many threads calling Display.asyncExec()
concurrently, offer a way to "coalesce" those UI operations.

Components can now call TmfUiRefreshHandler.getInstance().queueUpdate()
instead, which will accumulate updates coming from many components,
keep only the latest one from each component, and send them all to
the UI thread in one go after a timer has expired.

Change-Id: I367a59584a9a2b57d8409df603fc120bea993cd0
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/24479
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
org.eclipse.linuxtools.tmf.ui/META-INF/MANIFEST.MF
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/Activator.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/TmfUiRefreshHandler.java [new file with mode: 0644]
This page took 0.025149 seconds and 5 git commands to generate.