Mercurial > hg > RemoteEditor > Eclipse
changeset 16:b8f407692ecf
*** empty log message ***
author | pin |
---|---|
date | Tue, 24 Oct 2006 18:03:13 +0900 |
parents | 535f124c2fc3 |
children | b409b85ab73f |
files | src/remoteeditor/editors/RemoteEditor.java src/remoteeditor/network/REP.java |
diffstat | 2 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remoteeditor/editors/RemoteEditor.java Mon Oct 23 02:50:36 2006 +0900 +++ b/src/remoteeditor/editors/RemoteEditor.java Tue Oct 24 18:03:13 2006 +0900 @@ -78,7 +78,7 @@ final int length = evt.getLength(); final String text = evt.getText(); System.out.println(offset + " : " + length); - if(evt.getCmd() == REP.REP_INSERT_CMD && evt.getSeqId() != 1){ + if(evt.getCmd() == REP.REP_INSERT_CMD){ viewer.getTextWidget().getDisplay().syncExec(new Runnable() { public void run() { try {
--- a/src/remoteeditor/network/REP.java Mon Oct 23 02:50:36 2006 +0900 +++ b/src/remoteeditor/network/REP.java Tue Oct 24 18:03:13 2006 +0900 @@ -42,6 +42,7 @@ private Shell shell; List myCmdList = new LinkedList(); + List othersCmdList = new LinkedList(); public REP() throws Exception { String host = "localhost"; @@ -170,9 +171,6 @@ } public void addSocketListener(RSocketListener socketListener){ - //Runnable prt = new PacketReceiveThread(sc, socketListener); - //Thread th = new Thread(prt); - //th.start(); Thread th = new Thread(this); th.start(); this.socketListener = socketListener; @@ -187,7 +185,7 @@ e.printStackTrace(); } System.out.println("read packet:" + cmd +", "+ sid +", "+ eid +", "+ seqid +", "+ lineno +", "+ textsiz +", "+ string); - socketListener.packetReceived(new RSocketEvent(cmd, sid, eid, seqid, lineno, textsiz, string)); + socketListener.packetReceived(new RSocketEvent(cmd, sid, eid, seqid, lineno, textsiz, string)); // } }