Mercurial > hg > RemoteEditor > REPSessionManager
changeset 106:eded5012be89
*** empty log message ***
author | pin |
---|---|
date | Sat, 22 Dec 2007 21:22:36 +0900 |
parents | 9c97532b9851 |
children | d32096538dc3 |
files | rep/EditorList.java rep/SessionManager.java |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/EditorList.java Sat Dec 22 21:22:36 2007 +0900 +++ b/rep/EditorList.java Sat Dec 22 21:22:36 2007 +0900 @@ -101,9 +101,10 @@ } - public void addEditor(Editor editor) { - // TODO Auto-generated method stub + public int addEditor(Editor editor) { + numberOfEditor++; editorList.add(editor); + return numberOfEditor; } }
--- a/rep/SessionManager.java Sat Dec 22 21:22:36 2007 +0900 +++ b/rep/SessionManager.java Sat Dec 22 21:22:36 2007 +0900 @@ -138,6 +138,7 @@ case REP.SMCMD_JOIN: editor = new Editor(channel); + editor.setHost(myHost); int tempeid = allEditorList.addEditor(editor); gui.setComboEditor(tempeid, channel);