Mercurial > hg > RemoteEditor > Eclipse
changeset 107:823a45f843a9
*** empty log message ***
author | pin |
---|---|
date | Sun, 23 Dec 2007 10:51:21 +0900 |
parents | 8a3880cd858b |
children | 2e649cd44078 |
files | bin/remoteeditor/editors/RemoteEditor.class src/remoteeditor/editors/RemoteEditor.java |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remoteeditor/editors/RemoteEditor.java Sun Dec 23 10:32:27 2007 +0900 +++ b/src/remoteeditor/editors/RemoteEditor.java Sun Dec 23 10:51:21 2007 +0900 @@ -287,7 +287,12 @@ break; case REP.REPCMD_READ_ACK: try { + if(command.sid == mysid && command.eid == myeid){ read(command); + }else{ + repsend.send(command); + } + } catch (BadLocationException e) { e.printStackTrace(); } @@ -298,10 +303,8 @@ private void read(REPCommand command) throws BadLocationException { - if(command.sid != mysid) return; - if(command.eid != myeid) return; final int offset = document.getLineOffset(command.lineno); - final String string = command.string + "¥n"; + final String string = command.string; viewer.getTextWidget().getDisplay().syncExec(new Runnable() { public void run() {