changeset 130:a3dbec69b1cb

new REPCommand(REPCommand cmd)
author kent
date Tue, 08 Jan 2008 16:42:26 +0900
parents e4c21b87223a
children 61f82e84937a
files src/remoteeditor/command/REPCommand.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/remoteeditor/command/REPCommand.java	Tue Jan 08 16:21:46 2008 +0900
+++ b/src/remoteeditor/command/REPCommand.java	Tue Jan 08 16:42:26 2008 +0900
@@ -28,6 +28,9 @@
 		this.string = string;
 		this.throughMaster = false;
 	}
+	public REPCommand(REPCommand cmd){
+		this(cmd.cmd, cmd.sid, cmd.eid, cmd.seq, cmd.lineno, cmd.string.length(), new String(cmd.string));
+	}
 
 	public String toString(){
 		String repCmdString = new String(cmd + "," + sid + "," + eid + "," + seq + "," + lineno + "," + textsiz + "," + string);