changeset 86:cd2b4d8fff9b

*** empty log message ***
author pin
date Fri, 21 Dec 2007 17:06:21 +0900
parents d5cd4d103eea
children 705d4b4baf70
files rep/EditorList.java
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rep/EditorList.java	Fri Dec 21 16:58:51 2007 +0900
+++ b/rep/EditorList.java	Fri Dec 21 17:06:21 2007 +0900
@@ -86,10 +86,14 @@
 	public Editor getEditor(String hostport) {
 		// TODO Auto-generated method stub
 		for(Editor editor : editorList){
-			String hostandport = editor.getHost() + ":" + editor.getPort();
-			if(hostport.equals(hostandport)){
-				return editor;
+			String[] splited = hostport.split(":");
+			if(splited[0].equals(editor.getHost())){
+				System.out.println("akira");
 			}
+			//String hostandport = editor.getHost() + ":" + editor.getPort();
+			//if(hostport.equals(hostandport)){
+			//	return editor;
+			//}
 		}
 		return null;
 	}