Mercurial > hg > RemoteEditor > Eclipse
changeset 212:58c0e5c876b8
fix put/join command
author | one |
---|---|
date | Sun, 19 Dec 2010 23:01:45 +0900 |
parents | 399682d17382 |
children | bea1625524fe |
files | src/remoteeditor/editors/REPEditor.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remoteeditor/editors/REPEditor.java Sun Dec 19 14:57:30 2010 +0900 +++ b/src/remoteeditor/editors/REPEditor.java Sun Dec 19 23:01:45 2010 +0900 @@ -35,6 +35,12 @@ public REPEditor(REPText repText, boolean master){ this.repText = repText; this.master = master; + if(master){ + userCommand.add(new REPCommand(REP.SMCMD_PUT,0,0,0,0,name +"-file")); + }else{ + userCommand.add(new REPCommand(REP.SMCMD_JOIN, 0, 0, 0, 0, name)); + } + repText.addTextListener(this); }