Mercurial > hg > Applications > AliceVNC
view src/main/java/jp/ac/u_ryukyu/alicevnc/StopProxy.java @ 59:37d04d795b5b
minor change
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2015 23:55:42 +0900 |
parents | 57ca704f86a3 |
children | fe627049e289 4a8755a30aa8 |
line wrap: on
line source
package jp.ac.u_ryukyu.alicevnc; import com.glavsoft.viewer.Viewer; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class StopProxy extends CodeSegment { private Receiver info = ids.create(CommandType.TAKE); public StopProxy() { info.setKey("viewer"); } @Override public void run() { System.out.println("call clean up session"); Viewer v = info.asClass(Viewer.class); v.closeApp(); new ReceiveAliceVNCMessage(); } }