changeset 415:648c676bf9df

REPSimpleEditor
author one
date Tue, 09 Dec 2008 16:34:41 +0900
parents 784a4d67e6a5
children b7f42fc75a36
files test/editortest/REPSimpleEditor.java test/editortest/TestEditor2.java test/sematest/TestInterManagerSession.java test/sematest/TestSessionManager.java
diffstat 4 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/test/editortest/REPSimpleEditor.java	Tue Dec 09 15:44:28 2008 +0900
+++ b/test/editortest/REPSimpleEditor.java	Tue Dec 09 16:34:41 2008 +0900
@@ -62,8 +62,8 @@
 		putButton = new JButton("put");
 		joinButton = new JButton("join");
 		
-		putButton.addActionListener(this);
-		joinButton.addActionListener(this);
+		//putButton.addActionListener(this);
+		//joinButton.addActionListener(this);
 		
 		toolbar.add(putButton);
 		toolbar.add(joinButton);
@@ -108,7 +108,7 @@
 		} catch (BadLocationException e1) {
 			e1.printStackTrace();
 		}
-		Logger.printT(command);
+		//Logger.printT(command);
 		return command;
 	}
 
--- a/test/editortest/TestEditor2.java	Tue Dec 09 15:44:28 2008 +0900
+++ b/test/editortest/TestEditor2.java	Tue Dec 09 16:34:41 2008 +0900
@@ -180,6 +180,7 @@
 	private void userInput() {
 		REPCommand cmd = cmds.poll();
 		if (cmd!=null) {
+			Logger.print(logTarget, "User Input : " + cmd);
 			switch(cmd.cmd) {
 			case REPCMD_INSERT_USER:
 				text.insert(cmd.lineno, cmd.string);
--- a/test/sematest/TestInterManagerSession.java	Tue Dec 09 15:44:28 2008 +0900
+++ b/test/sematest/TestInterManagerSession.java	Tue Dec 09 16:34:41 2008 +0900
@@ -150,7 +150,7 @@
 		 *    isSimulation=true     thread base simulation for PathFinder
 		 *    isSimulation=false    socket based communication mode
 		 */
-		REPServerSocketChannel.isSimulation = true;
+		REPServerSocketChannel.isSimulation = false;
 		// At least 3 TestEditors are required.
 		TestInterManagerSession test = new TestInterManagerSession(1, 2, 3);
 		logger.setLogLevel(5);
--- a/test/sematest/TestSessionManager.java	Tue Dec 09 15:44:28 2008 +0900
+++ b/test/sematest/TestSessionManager.java	Tue Dec 09 16:34:41 2008 +0900
@@ -73,7 +73,7 @@
 	 * start session manager. sm.init(port,guit) is a mainloop, so
 	 * we need Thread here. 
 	 */
-	int startSessionManager(final SessionManager sm,int i,int port) {
+	public int startSessionManager(final SessionManager sm,int i,int port) {
 		final SessionManagerGUI gui = new TestGUI(sm);
 		final int port1 = port;
 		logger.writeLog("TestSessionManager.startSessionManager() : start SessionManager");
@@ -114,7 +114,7 @@
 		 *    isSimulation=true     thread base simulation for PathFinder
 		 *    isSimulation=false    socket based communication mode
 		 */
-		REPServerSocketChannel.isSimulation = true;
+		REPServerSocketChannel.isSimulation = false;
 		// At least 3 TestEditors are required.
 		TestSessionManager test = new TestSessionManager(1, 0, 3);
 		logger.setLogLevel(5);