Mercurial > hg > RemoteEditor > REPSessionManager
diff rep/SessionManager.java @ 279:e58695b5118d
*** empty log message ***
author | kono |
---|---|
date | Sat, 27 Sep 2008 14:48:02 +0900 |
parents | ad487e63e3c8 |
children | a549bd4dadb8 |
line wrap: on
line diff
--- a/rep/SessionManager.java Sat Sep 27 12:45:19 2008 +0900 +++ b/rep/SessionManager.java Sat Sep 27 14:48:02 2008 +0900 @@ -12,7 +12,6 @@ import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; -import javax.swing.SwingUtilities; import rep.channel.REPServerSocketChannel; import rep.channel.REPSocketChannel; @@ -44,7 +43,7 @@ public class SessionManager implements SessionManagerEventListener{ private LinkedList<Session> sessionList; - private SessionManagerGUI gui; + private SessionManagerGUIimpl gui; private REPSelector<REPCommand> selector; private SessionManagerList smList; private String myHost; @@ -331,7 +330,7 @@ LinkedList<Editor> eList = new LinkedList<Editor>(editorList); //GUIに反映 Runnable doRun = new DoGUIUpdate(sList, eList, gui); - SwingUtilities.invokeLater(doRun); + gui.invokeLater(doRun); } break; @@ -351,7 +350,7 @@ LinkedList<Editor> eList = new LinkedList<Editor>(editorList); //GUIに反映 Runnable doRun = new DoGUIUpdate(sList, eList, gui); - SwingUtilities.invokeLater(doRun); + gui.invokeLater(doRun); } smList.sendToSlave(receivedCommand); } @@ -412,7 +411,7 @@ //GUIに反映 Runnable doRun = new DoGUIUpdate(sList, eList, gui); - SwingUtilities.invokeLater(doRun); + gui.invokeLater(doRun); } private void setNormalState(REPSocketChannel<REPCommand> channel, int sid) { @@ -496,7 +495,7 @@ } public void startGUI(SessionManager sm) { - gui = new SessionManagerGUI(); + gui = new SessionManagerGUIimpl(); Thread th = new Thread( gui ); th.start(); gui.addREPActionListener(this);