public class ItemListFactory extends CommonItemListFactory {
+ private static String ITEM_EXPERIMENTAL = "experimental";
+
private static void makeItemListOld(List<? extends IViewItem> list) {
List<IViewItem> itemList = (List<IViewItem>)list;
List<IViewItem> itemList = (List<IViewItem>)list;
List<Item> deviceItemList = deviceList.getItem();
LineLabelViewItem currentLineLabel = null; // Top categorizing item
+ boolean isExperimentalItem = false;
for (Item item : deviceItemList) {
String type = item.getType();
String name = item.getName();
+ if (isExperimentalItem && EmulatorManager.getManagerMode() != ManagerModeType.INHOUSE_MODE) {
+ continue;
+ }
+
if (name.equals(CheckingRunningEmulator.OPTION_VIEWER)) {
if (EmulatorManager.isLinux()) {
itemList.add(new LabelViewItem(item, currentLineLabel));
}
if (type.equals(ItemType.LINE_LABEL.getName())) { // Top categorizing item
- currentLineLabel = new LineLabelViewItem(item);
- itemList.add(currentLineLabel);
+ if (name.equals(ITEM_EXPERIMENTAL)) {
+ isExperimentalItem = true;
+ if (EmulatorManager.getManagerMode() == ManagerModeType.INHOUSE_MODE) {
+ currentLineLabel = new LineLabelViewItem(item);
+ itemList.add(currentLineLabel);
+ }
+ } else {
+ currentLineLabel = new LineLabelViewItem(item);
+ itemList.add(currentLineLabel);
+ isExperimentalItem = false;
+ }
} else if (type.equals(ItemType.TOGGLE.getName())) {
itemList.add(new OnOffViewItem(item, currentLineLabel));
<!-- Followings are drawn as check box in Emulator Manager vm property UI.-->
<deviceList>
<item type="lineLabel" name="advancedOption" title="Advanced Option"/>
- <item type="label" name="viewer" title="Viewer">
- <item type="combo" name="type" title="Type">
- <option name="list">Native, Web</option>
- <option name="defaultOnCreate">Native</option>
- </item>
- </item>
<item type="checkLabel" name="sensor" title="Sensor">
<item type="checkbox" name="accel" title="Accelerometer"/>
<item type="checkbox" name="gyro" title="Gyroscope"/>
<item type="checkbox" name="charger" title="Charger"/>
<item type="checkbox" name="usb" title="USB"/>
</item>
+ <item type="lineLabel" name="experimental" title="Experimental Options"/>
+ <item type="label" name="viewer" title="Viewer">
+ <item type="combo" name="type" title="Type">
+ <option name="list">Native, Web</option>
+ <option name="defaultOnCreate">Native</option>
+ </item>
+ </item>
</deviceList>
</ItemList>