[openrtm-commit:01170] r480 - 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月 21日 (火) 22:49:38 JST
Author: win-ei
Date: 2014-01-21 22:49:38 +0900 (Tue, 21 Jan 2014)
New Revision: 480
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-21 13:32:12 UTC (rev 479)
+++ branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java 2014-01-21 13:49:38 UTC (rev 480)
@@ -753,7 +753,7 @@
System.out.println("save 500");
System.out.println("save 600");
System.out.println("save 700");
- System.out.println(gr.getCode());
+ //System.out.println(gr.getCode());
System.out.println("save 800");
}
//
@@ -783,8 +783,27 @@
PrintWriter pw = new PrintWriter(bw);
pw.println(gr.getCode());
pw.close();
- System.out.println(gr.getCode());
+ //System.out.println(gr.getCode());
}
+ //
+ //EcAwakingTbl.c
+ //
+ {
+ String template = TEMPLATE_PATH + "/" +"EcAwakingTbl.c.vsl";
+ ClassLoader cl = Thread.currentThread().getContextClassLoader();
+ InputStream ins = cl.getResourceAsStream(template);
+ String dataPortContct = tablepath+"\\EcAwakingTbl.c";
+ Map<String, Object> contextMap = new HashMap<String, Object>();
+ contextMap.put("template", TEMPLATE_PATH);
+ GeneratedResult gr = TemplateUtil.createGeneratedResult(ins, contextMap, dataPortContct);
+ File targetFile = new File(dataPortContct);
+ FileWriter filewriter = new FileWriter(targetFile);
+ BufferedWriter bw = new BufferedWriter(filewriter);
+ PrintWriter pw = new PrintWriter(bw);
+ pw.println(gr.getCode());
+ pw.close();
+ //System.out.println(gr.getCode());
+ }
}
}
More information about the openrtm-commit
mailing list