Mercurial > hg > RemoteEditor > REPSessionManager
view test/editortest/TestSimpleEditor.java @ 419:7ff127c8ad64
(no commit message)
author | one |
---|---|
date | Tue, 20 Jan 2009 18:39:02 +0900 |
parents | 267f9748e826 |
children | 7420dea70dd7 |
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.noMergeMode = false; } }