[openrtm-commit:01152] r462 - branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 1月 15日 (水) 11:48:44 JST


Author: win-ei
Date: 2014-01-15 11:48:44 +0900 (Wed, 15 Jan 2014)
New Revision: 462

Modified:
   branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java
Log:
Daily work.

Modified: branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java
===================================================================
--- branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java	2014-01-13 15:32:33 UTC (rev 461)
+++ branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java	2014-01-15 02:48:44 UTC (rev 462)
@@ -1,5 +1,10 @@
 package jp.go.aist.rtm.systemeditor.ui.editor;
 
+//<+zxc
+import java.io.InputStream;
+import java.util.HashMap;
+import java.util.Map;
+//zxc+>
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
 import java.io.FileNotFoundException;
@@ -668,6 +673,17 @@
 					String template = TEMPLATE_PATH + "/" +"DataPortContTbl.c.vsl";
 					ClassLoader cl = Thread.currentThread().getContextClassLoader();
 					System.out.println("Loads class for RTMSafety");
+					InputStream ins = cl.getResourceAsStream(template);
+					System.out.println("Opens file.");
+					String outfile = "src/" + "testtabel.c";
+					Map<String, Object> contextMap = new HashMap<String, Object>();
+					//GeneratedResult gr = TemplateUtil.createGeneratedResult(ins, contextMap, outfile);
+					System.out.println("Creates file.");
+					if (ins != null) {
+						System.out.println("Closes file. 1");
+						ins.close();
+						System.out.println("Closes file. 2");
+					}		
 					
 				}
 			}



More information about the openrtm-commit mailing list