changeset 11:220433691c2e

fix NetworkDefaultTreeEditor.cs but, no debug. (use InnerClass)
author Kazuma
date Sun, 23 Oct 2016 07:47:02 +0900
parents abe0c247f5a5
children b71d9ea6bd8e
files src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/transaction/NetworkDefaultJungleTreeEditor.cs
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/transaction/NetworkDefaultJungleTreeEditor.cs	Sun Oct 23 07:40:50 2016 +0900
+++ b/src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/transaction/NetworkDefaultJungleTreeEditor.cs	Sun Oct 23 07:47:02 2016 +0900
@@ -60,7 +60,7 @@
 //		};
 
 		// I must fix this code.
-		IterableConverter.Converter<TreeOperation,NodeOperation> converter;
+		IterableConverter<TreeOperation,NodeOperation>.Converter<TreeOperation,NodeOperation> converter = new InnerConverter(path);
 
 		IEnumerable<TreeOperation> iterable = new IterableConverter<TreeOperation,NodeOperation>(newLog, converter);
 		DefaultTreeOperationLog treeOperationLog = new DefaultTreeOperationLog(iterable,newLog.length());
@@ -167,4 +167,16 @@
 		return null;
 	}
 
+	public class InnerConverter : IterableConverter<TreeOperation,NodeOperation>.Converter<TreeOperation,NodeOperation>{
+		NodePath path;
+
+		public InnerConverter(NodePath _path) {
+			path = _path;
+		}
+
+
+		public TreeOperation conv(NodeOperation _b){
+			return new DefaultTreeOperation(path,_b);
+		}
+	}
 }