diff options
author | Alex Clayton <alex.clayton@isode.com> | 2014-06-25 10:12:13 (GMT) |
---|---|---|
committer | Alex Clayton <alex.clayton@isode.com> | 2014-06-26 11:03:31 (GMT) |
commit | f17907c88ed455f3e4bacaa737ef0406a82ef64c (patch) | |
tree | caed300b826d33f9359f55a44521ab1bc5d4c8ff /src/com/isode/stroke/eventloop/ImmediateEventLoop.java | |
parent | db8568aa6a9bbfa8dca9cdae696e8428a0068d89 (diff) | |
download | stroke-f17907c88ed455f3e4bacaa737ef0406a82ef64c.zip stroke-f17907c88ed455f3e4bacaa737ef0406a82ef64c.tar.bz2 |
Import SimpleEventLoop into stroke
Import the class SimpleEventLoop from Swiften into Stroke. This also involves renaming the current
SimpleEventLoop class to ImmediateEventLoop
Test Information:
By code inspection.
Change-Id: Ie108a7b3ff98bb078cdd0017f4536e8bd9b76956
Signed-off-by: Alex Clayton <alex.clayton@isode.com>
Diffstat (limited to 'src/com/isode/stroke/eventloop/ImmediateEventLoop.java')
-rw-r--r-- | src/com/isode/stroke/eventloop/ImmediateEventLoop.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/isode/stroke/eventloop/ImmediateEventLoop.java b/src/com/isode/stroke/eventloop/ImmediateEventLoop.java new file mode 100644 index 0000000..19bb42d --- /dev/null +++ b/src/com/isode/stroke/eventloop/ImmediateEventLoop.java @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2010-14, Isode Limited, London, England. + * All rights reserved. + */ + +package com.isode.stroke.eventloop; + +/** + * Don't use this, it simply runs the callback in the same thread. + * It is useful for unit testing, but will break GUIs. + */ +public class ImmediateEventLoop extends EventLoop { + @Override + protected void post(Event event) { + handleEvent(event); + } +} |