super(parent, title, WIDTH, HEIGHT);
}
+ public DeviceTemplateModifyDialog(Shell parent, String title, int style) {
+ super(parent, title, WIDTH, HEIGHT, style);
+ }
public void create(DeviceTemplateValue value, List<ModifyDialogItem> itemList) {
// - create title, buttons
}
public void setOKButtonEnable(boolean enable) {
- okButton.setEnabled(enable);
+ if (okButton != null) {
+ okButton.setEnabled(enable);
+ }
}
public Dialog(Shell parent, String title, int width, int height, int buttonStyle) {
public ModifyDialog(Shell parent, String title, int width, int height) {
super(parent, title, width, height, BUTTON_STYLE);
- // TODO Auto-generated constructor stub
}
+ public ModifyDialog(Shell parent, String title, int width, int height, int style) {
+ super(parent, title, width, height, style);
+ }
public void create(PropertyValue value, List<ModifyDialogItem> itemList) {
super.create();
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ProfileItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.RamSizeItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.SensorItem;
+import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.template.CameraItem;
import org.tizen.emulator.manager.vms.xml.template2.ItemList2;
public static final String TITLE_CREATE = "New Template";
public static final String TITLE_MODIFY = "Modify Template";
public static final String TITLE_CLONE = "Clone Template";
-
+ public static final String TITLE_DETAIL = "Detail Information";
public static Map<String, List<ModifyDialogItem>> itemListMap;
+ public static void detail(DeviceTemplateValue value) {
+ if (value == null) {
+ return;
+ }
+
+ DeviceTemplateValue itemValue = value.clone();
+ DeviceTemplateModifyDialog dialog
+ = new DeviceTemplateModifyDialog(MainDialog.getShell(), TITLE_DETAIL, SWT.OK);
+ dialog.setDialogMode(DIALOG_MODE.DETAIL);
+ dialog.create(new PropertyValue(itemValue), getItemList(null));
+ dialog.open();
+ }
public static DeviceTemplateValue create(DeviceTemplateValue value) {
if (value == null) {