[openrtm-commit:01148] r458 - branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors

openrtm @ openrtm.org openrtm @ openrtm.org
2014年 1月 11日 (土) 17:05:03 JST


Author: win-ei
Date: 2014-01-11 17:05:03 +0900 (Sat, 11 Jan 2014)
New Revision: 458

Modified:
   branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/DataPortEditorFormPage.java
Log:
Added types for RTMSafety to the data type  list.

Modified: branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/DataPortEditorFormPage.java
===================================================================
--- branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/DataPortEditorFormPage.java	2014-01-07 10:32:07 UTC (rev 457)
+++ branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/DataPortEditorFormPage.java	2014-01-11 08:05:03 UTC (rev 458)
@@ -1,5 +1,6 @@
 package jp.go.aist.rtm.rtcbuilder.ui.editors;
 
+import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashSet;
 import java.util.List;
@@ -96,6 +97,28 @@
 		defaultPortVarName = store.getString(ComponentPreferenceManager.Generate_DataPort_VarName);
 		//
 		defaultTypeList = super.extractDataTypes();
+		for (String key : RtcBuilderPlugin.getDefault().getLoader()
+					.getManagerKeyList()) 
+		{
+			if(key.equals("RTMSafety"))
+			{
+				ArrayList<String> list 
+					= new ArrayList(Arrays.asList(defaultTypeList));
+				list.add("char");
+				list.add("octet");
+				list.add("short");
+				list.add("unsigned short");
+				list.add("long");
+				list.add("unsigned long");
+				list.add("float");
+				list.add("double");
+				list.add("boolean");
+				list.add("struct");
+				list.add("array");
+				defaultTypeList = (String[])list.toArray(new String[list.size()]);
+			}
+			
+		}
 	}
 
 	/**



More information about the openrtm-commit mailing list