Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.e4.ui.services/src/org/eclipse/e4/ui/services/internal/events/UIEventHandler.java')
-rw-r--r--bundles/org.eclipse.e4.ui.services/src/org/eclipse/e4/ui/services/internal/events/UIEventHandler.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.e4.ui.services/src/org/eclipse/e4/ui/services/internal/events/UIEventHandler.java b/bundles/org.eclipse.e4.ui.services/src/org/eclipse/e4/ui/services/internal/events/UIEventHandler.java
index 926aa55a6ba..cf2a4595924 100644
--- a/bundles/org.eclipse.e4.ui.services/src/org/eclipse/e4/ui/services/internal/events/UIEventHandler.java
+++ b/bundles/org.eclipse.e4.ui.services/src/org/eclipse/e4/ui/services/internal/events/UIEventHandler.java
@@ -19,22 +19,23 @@ import org.osgi.service.event.EventHandler;
* The helper will properly place UI-aware consumers on the main thread.
*/
public class UIEventHandler implements EventHandler {
-
+
final private EventHandler eventHandler;
final private UISynchronize uiSync;
-
+
public UIEventHandler(EventHandler eventHandler, UISynchronize uiSync) {
this.eventHandler = eventHandler;
this.uiSync = uiSync;
}
-
+
@Override
public void handleEvent(final Event event) {
if (uiSync == null)
eventHandler.handleEvent(event);
else {
uiSync.syncExec(new Runnable() {
-
+
+ @Override
public void run() {
eventHandler.handleEvent(event);
}

Back to the top