org.eclipse.emf.emfstore.internal.client.ui.transaction
Class PrivilegedRunnableProvider

java.lang.Object
  extended by 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

Constructor Summary
PrivilegedRunnableProvider()
           
 
Method Summary
 Runnable createRunnable(Runnable runnable)
          The method is used to create a Runnable which will be executed on the UI thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrivilegedRunnableProvider

public PrivilegedRunnableProvider()
Method Detail

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.