Mercurial > hg > RemoteEditor > REPSessionManager
changeset 228:e6c7a56ff7f1
*** empty log message ***
author | pin |
---|---|
date | Sun, 31 Aug 2008 15:27:04 +0900 |
parents | cbd67817e9cd |
children | f816e0cbe6fd |
files | rep/RPanel.java rep/SessionManager.java |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/RPanel.java Sun Aug 31 13:55:39 2008 +0900 +++ b/rep/RPanel.java Sun Aug 31 15:27:04 2008 +0900 @@ -75,7 +75,7 @@ this.setLayout(null); this.add(textField); - this.add( connectButton); + this.add(connectButton); this.add(label); this.add(s_sp); this.add(e_sp);
--- a/rep/SessionManager.java Sun Aug 31 13:55:39 2008 +0900 +++ b/rep/SessionManager.java Sun Aug 31 15:27:04 2008 +0900 @@ -75,6 +75,11 @@ editorList = new LinkedList<Editor>(); waitingCommandInMerge = new LinkedList<PacketSet>(); waitingQueue = new LinkedBlockingQueue<SessionManagerEvent>(); + + //デフォルトのSessionを作っておく(テスト用に?) + if(sessionList.size() > 0) System.out.println("Error : SessionManager.init():"); + Session defaultSession = new Session(sessionList.size(), "DefaultSession.txt", new Editor(0,null)); + sessionList.add(defaultSession); }