view test/editortest/TestSimpleEditor.java @ 484:7420dea70dd7

Direct Merge first try
author one
date Wed, 20 Oct 2010 21:19:24 +0900
parents 7ff127c8ad64
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;
		
	}

}