Mercurial > hg > RemoteEditor > Eclipse
changeset 134:1e033a92b69a
*** empty log message ***
author | pin |
---|---|
date | Tue, 22 Jan 2008 15:50:03 +0900 |
parents | 1fce8ece5eeb |
children | cdcd9fcd5dbf |
files | .classpath bin/remoteeditor/editors/RemoteEditor$1.class bin/remoteeditor/editors/RemoteEditor.class src/remoteeditor/command/REPCommand.java src/remoteeditor/editors/RemoteEditor.java |
diffstat | 5 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.classpath Tue Jan 22 15:50:03 2008 +0900 +++ b/.classpath Tue Jan 22 15:50:03 2008 +0900 @@ -3,6 +3,5 @@ <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry combineaccessrules="false" kind="src" path="/REPLibrary"/> <classpathentry kind="output" path="bin"/> </classpath>
--- a/src/remoteeditor/command/REPCommand.java Tue Jan 22 15:50:03 2008 +0900 +++ b/src/remoteeditor/command/REPCommand.java Tue Jan 22 15:50:03 2008 +0900 @@ -73,5 +73,9 @@ public void setThroughMaster(boolean f){ this.throughMaster=f; } + public void setSEQID(int i) { + // TODO Auto-generated method stub + seq = i; + } }
--- a/src/remoteeditor/editors/RemoteEditor.java Tue Jan 22 15:50:03 2008 +0900 +++ b/src/remoteeditor/editors/RemoteEditor.java Tue Jan 22 15:50:03 2008 +0900 @@ -129,6 +129,7 @@ super.dispose(); } public void textChanged(TextEvent event) { + if(lock) return; String replacedText = event.getReplacedText(); String inputText = event.getText(); @@ -191,9 +192,10 @@ } private void createUndoCommand(int cmd, String replacedText, String inputText, int line) { - int undoCmd; - String undoString; - REPCommand undoCommand = new REPCommand(); + int undoCmd = 0; + String undoString = null; + REPCommand undoCommand; + REPPacketSend send = new REPPacketSend(sc); if(cmd == REP.REPCMD_INSERT){ undoCmd = REP.REPCMD_DELETE; undoString = ""; @@ -203,6 +205,8 @@ undoCmd = REP.REPCMD_INSERT; undoString = replacedText; } + undoCommand = new REPCommand(undoCmd, mysid, 0, -1, line, undoString.length(), undoString); + send.send(undoCommand); } private void sendDelete(int line) throws BadLocationException {