Mercurial > hg > RemoteEditor > REPSessionManager
comparison test/mergertest/EditorSimulatorImpl.java @ 420:5c95a9020e31
Modify ServerMainLoop
author | one |
---|---|
date | Fri, 13 Feb 2009 19:13:50 +0900 |
parents | |
children | f8916a96a373 |
comparison
equal
deleted
inserted
replaced
419:7ff127c8ad64 | 420:5c95a9020e31 |
---|---|
1 package test.mergertest; | |
2 | |
3 import rep.REPCommand; | |
4 import rep.handler.Translator; | |
5 import rep.optimizers.NullOptimizer; | |
6 import test.editortest.Logger; | |
7 | |
8 public class EditorSimulatorImpl extends EditorSimulator { | |
9 | |
10 private Translator translator; | |
11 | |
12 public EditorSimulatorImpl(int sid, int eid) { | |
13 this.eid = eid; | |
14 this.sid = sid; | |
15 | |
16 translator = new Translator(eid, new NullOptimizer()); | |
17 } | |
18 | |
19 @Override | |
20 public void send(REPCommand command) { | |
21 Logger.print(command); | |
22 } | |
23 | |
24 } |