org.eclipse.emf.emfstore.internal.client.ui.transaction
Class PrivilegedRunnableProvider
java.lang.Object
org.eclipse.emf.emfstore.internal.client.ui.transaction.PrivilegedRunnableProvider
- All Implemented Interfaces:
- ESRunnableWrapper
public class PrivilegedRunnableProvider
- extends Object
- implements ESRunnableWrapper
Implementation of ESRunnableWrapper
for creating
privileged runnables
to be executed on the UI
thread.
- Author:
- jfaltermeier
PrivilegedRunnableProvider
public PrivilegedRunnableProvider()
createRunnable
public Runnable createRunnable(Runnable runnable)
- The method is used to create a
Runnable
which will be executed on the UI thread. The returned
Runnable
is expected to wrap the given runnable.
- Specified by:
createRunnable
in interface ESRunnableWrapper
- Parameters:
runnable
- the Runnable
which will be executed by the runnable
- Returns:
- a
Runnable
which can be executed on the UI Thread in a safe fashion. - See Also:
ESRunnableWrapper.createRunnable(java.lang.Runnable)
Copyright © 2016. All Rights Reserved.