417
|
1 package test.editortest;
|
|
2
|
|
3 import java.io.IOException;
|
|
4
|
419
|
5 import rep.handler.Editor;
|
417
|
6 import test.AutoSelectManager;
|
|
7
|
|
8 public class TestSimpleEditor {
|
|
9
|
|
10 /**
|
|
11 * @param args
|
|
12 * @throws IOException
|
|
13 * @throws InterruptedException
|
|
14 */
|
|
15 public static void main(final String[] args) throws InterruptedException, IOException {
|
|
16
|
|
17 Runnable runnable = new Runnable(){
|
|
18 public void run(){
|
|
19 try {
|
|
20 AutoSelectManager.main(args);
|
|
21 } catch (InterruptedException e) {
|
|
22 e.printStackTrace();
|
|
23 } catch (IOException e) {
|
|
24 e.printStackTrace();
|
|
25 }
|
|
26 }
|
|
27 };
|
|
28
|
|
29 Thread thread = new Thread(runnable);
|
|
30 thread.start();
|
|
31
|
419
|
32 SimpleEditorForREPEditor editor1 = new SimpleEditorForREPEditor("editor1");
|
417
|
33 editor1.setVisible(true);
|
|
34
|
419
|
35 SimpleEditorForREPEditor editor2 = new SimpleEditorForREPEditor("editor2");
|
417
|
36 editor2.setVisible(true);
|
|
37
|
419
|
38 SimpleEditorForREPEditor editor3 = new SimpleEditorForREPEditor("editor3");
|
417
|
39 editor3.setVisible(true);
|
419
|
40
|
|
41 UserSimulator user = new UserSimulator("Starter");
|
|
42 user.add(editor1); user.add(editor2); user.add(editor3);
|
|
43 user.setVisible(true);
|
|
44
|
484
|
45 Editor.mergeMode = Editor.MergeMode.Direct;
|
419
|
46
|
417
|
47 }
|
|
48
|
|
49 }
|