From 0f635a862e3769c17127163595ca59b6b9c876dc Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 8 Nov 2008 00:07:58 +0000 Subject: [PATCH] RunQueue related updatery. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@777 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../threerings/micasa/client/MiCasaClient.java | 16 +--------------- .../micasa/simulator/client/SimpleClient.java | 17 ++--------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/src/java/com/threerings/micasa/client/MiCasaClient.java b/src/java/com/threerings/micasa/client/MiCasaClient.java index 80531ac1..c7f19e59 100644 --- a/src/java/com/threerings/micasa/client/MiCasaClient.java +++ b/src/java/com/threerings/micasa/client/MiCasaClient.java @@ -53,7 +53,6 @@ import com.threerings.micasa.util.MiCasaContext; * extended context implementation. */ public class MiCasaClient - implements RunQueue { /** * Initializes a new client and provides it with a frame in which to @@ -122,7 +121,7 @@ public class MiCasaClient throws IOException { // create the handles on our various services - _client = new Client(null, this); + _client = new Client(null, RunQueue.AWT); // create our managers and directors _locdir = new LocationDirector(_ctx); @@ -132,19 +131,6 @@ public class MiCasaClient _chatdir = new ChatDirector(_ctx, _msgmgr, null); } - // documentation inherited from interface RunQueue - public void postRunnable (Runnable run) - { - // queue it on up on the awt thread - EventQueue.invokeLater(run); - } - - // documentation inherited from interface RunQueue - public boolean isDispatchThread () - { - return EventQueue.isDispatchThread(); - } - /** * The context implementation. This provides access to all of the * objects and services that are needed by the operating client. diff --git a/src/java/com/threerings/micasa/simulator/client/SimpleClient.java b/src/java/com/threerings/micasa/simulator/client/SimpleClient.java index ca97ee5e..ee01549f 100644 --- a/src/java/com/threerings/micasa/simulator/client/SimpleClient.java +++ b/src/java/com/threerings/micasa/simulator/client/SimpleClient.java @@ -49,7 +49,7 @@ import com.threerings.micasa.client.MiCasaFrame; import com.threerings.micasa.util.MiCasaContext; public class SimpleClient - implements RunQueue, SimulatorClient + implements SimulatorClient { public SimpleClient (SimulatorFrame frame) throws IOException @@ -58,7 +58,7 @@ public class SimpleClient _ctx = createContext(); // create the handles on our various services - _client = new Client(null, this); + _client = new Client(null, RunQueue.AWT); // create our managers and directors _msgmgr = new MessageManager(getMessageManagerPrefix()); @@ -108,19 +108,6 @@ public class SimpleClient return _ctx; } - // documentation inherited from interface RunQueue - public void postRunnable (Runnable run) - { - // queue it on up on the awt thread - EventQueue.invokeLater(run); - } - - // documentation inherited from interface RunQueue - public boolean isDispatchThread () - { - return EventQueue.isDispatchThread(); - } - /** * The context implementation. This provides access to all of the * objects and services that are needed by the operating client.