Mercurial > hg > RemoteEditor > REPSessionManager
changeset 453:7005658aa52a
add special forwarder for editor (not yet worked)
author | one |
---|---|
date | Thu, 23 Sep 2010 22:19:04 +0900 |
parents | d0d2449000f5 |
children | 234dd2c88f0f |
files | rep/handler/Editor.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/handler/Editor.java Thu Sep 23 21:19:28 2010 +0900 +++ b/rep/handler/Editor.java Thu Sep 23 22:19:04 2010 +0900 @@ -25,6 +25,7 @@ private REPCommand mergeMark = new REPCommand(REP.SMCMD_START_MERGE, 0,0, 0, 0, ""); public static boolean noMergeMode=false; static final boolean doOptimize = false; + private Forwarder toEditor; public Editor(SessionManager manager,int editorNo){ // no translator case @@ -35,6 +36,7 @@ super(editorNo,manager,channel); eid = editorNo; sentList.add(mergeMark); // merge mark + toEditor = new Forwarder(eid, manager, channel); // no wait forwarder for my editor REPCommandOptimizer optimizer; if (doOptimize) optimizer = new DeleteInsertOptimizer(); //タカノがつくったおぷてぃまいざ else optimizer = new NullOptimizer(); //なにもしないけどOptimizer. @@ -430,7 +432,7 @@ } public void sendToEditor(REPCommand command) { - super.write(command); + toEditor.send(command); } @Override