[openrtm-commit:00088] r179 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 5月 23日 (月) 23:57:05 JST
Author: ta
Date: 2011-05-23 23:57:05 +0900 (Mon, 23 May 2011)
New Revision: 179
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/DataPortEditorFormPage.java
Log:
Sort DataType Combo
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/DataPortEditorFormPage.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/DataPortEditorFormPage.java 2011-05-23 05:13:32 UTC (rev 178)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/DataPortEditorFormPage.java 2011-05-23 14:57:05 UTC (rev 179)
@@ -1,5 +1,6 @@
package jp.go.aist.rtm.rtcbuilder.ui.editors;
+import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@@ -151,6 +152,10 @@
//
typeCombo = createLabelAndCombo(toolkit, detailGroup,
IMessageConstants.REQUIRED + IMessageConstants.DATAPORT_TBLLBL_DATATYPE, defaultTypeList, SWT.COLOR_RED);
+ String[] items = typeCombo.getItems();
+ Arrays.sort(items);
+ typeCombo.setItems(items);
+ //
varNameText = createLabelAndText(toolkit, detailGroup, IMessageConstants.DATAPORT_TBLLBL_VARNAME, SWT.BORDER);
positionCombo = createLabelAndCombo(toolkit, detailGroup, IMessageConstants.DATAPORT_TBLLBL_POSITION, DataPortParam.COMBO_ITEM);
/////
openrtm-commit メーリングリストの案内