Mercurial > hg > Database > Christie
diff src/main/java/christie/remoteTextEditor/Insert.java @ 239:8a7a2b8d0f07
add renew
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 Jan 2020 21:14:04 +0900 |
parents | src/main/java/christie/remoteTextEditor2/Insert.java@b22aaa94c93c |
children | 9d0b932ad84f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/christie/remoteTextEditor/Insert.java Tue Jan 21 21:14:04 2020 +0900 @@ -0,0 +1,26 @@ +package christie.remoteTextEditor; + +import christie.textEditor.NewTextEditor; + +public class Insert implements Command { + String string; + + int fastOffset; + + int endOffset; + + NewTextEditor myEditor; + //myEditorは入れない。 + + public Insert(int fastOffset, String string){ + this.string = string; + this.fastOffset = fastOffset; + } + + + @Override + public void execute(NewTextEditor myEditor) { + this.myEditor = myEditor; + myEditor.insertMessage(this.fastOffset, this.string); + } +}