Mercurial > hg > RemoteEditor > REPSessionManager
view test/editortest/TestSimpleEditor.java @ 502:49b689b17d06 default tip
merged TestEditor to REPEditor
author | suika6039 |
---|---|
date | Tue, 21 Dec 2010 18:01:15 +0900 |
parents | 7420dea70dd7 |
children |
line wrap: on
line source
package test.editortest; import java.io.IOException; import rep.handler.Editor; import test.AutoSelectManager; public class TestSimpleEditor { /** * @param args * @throws IOException * @throws InterruptedException */ public static void main(final String[] args) throws InterruptedException, IOException { Runnable runnable = new Runnable(){ public void run(){ try { AutoSelectManager.main(args); } catch (InterruptedException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } }; Thread thread = new Thread(runnable); thread.start(); SimpleEditorForREPEditor editor1 = new SimpleEditorForREPEditor("editor1"); editor1.setVisible(true); SimpleEditorForREPEditor editor2 = new SimpleEditorForREPEditor("editor2"); editor2.setVisible(true); SimpleEditorForREPEditor editor3 = new SimpleEditorForREPEditor("editor3"); editor3.setVisible(true); UserSimulator user = new UserSimulator("Starter"); user.add(editor1); user.add(editor2); user.add(editor3); user.setVisible(true); Editor.mergeMode = Editor.MergeMode.Direct; } }