Mercurial > hg > RemoteEditor > REPSessionManager
view rep/SelectButtonEvent.java @ 334:4fae49280699
Test pattern for Inter-Session Manager communication
author | kono |
---|---|
date | Sun, 12 Oct 2008 14:38:58 +0900 |
parents | 83790b8b8174 |
children |
line wrap: on
line source
package rep; import java.io.IOException; public class SelectButtonEvent implements SessionManagerEvent{ private int sid; private Forwarder editor; public SelectButtonEvent(Forwarder editor, Session session) { this.editor = editor; this.sid = session.getSID(); } public int getSID() { return sid; } public Forwarder getEditor() { return editor; } public void exec(SessionManager manager) { try { manager.selectSession(this); } catch (IOException e) { } } }