VM List: add custom profile icon to table
authorjihye424.kim <jihye424.kim@samsung.com>
Mon, 2 Nov 2015 07:01:24 +0000 (16:01 +0900)
committerjihye424.kim <jihye424.kim@samsung.com>
Mon, 2 Nov 2015 07:41:33 +0000 (16:41 +0900)
- set custom profile icon to custom vm item
- set create time to vm property

Change-Id: I7b7ee5fae5aef2935888a581d161d534bb059fc7
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
src/org/tizen/emulator/manager/ui/renewal/tableviewer/VMListTable.java
src/org/tizen/emulator/manager/vms/EmulatorVMList.java
src/org/tizen/emulator/manager/vms/VMProperty.java

index f34f346..213e1d4 100644 (file)
@@ -207,7 +207,12 @@ public class VMListTable {
                        item = new TableItem(table, SWT.NULL);
                }
 
-               item.setImage(1, pButton.getIcon());
+               if(property.getPropertyValue().baseImage.isStandard()) {
+                       item.setImage(1, pButton.getIcon());
+               } else {
+                       item.setImage(1, pButton.getCustomIcon());
+               }
+
                item.setSelectedImage(1,  pButton.getSelectedIcon());
                if (pButton.getProfileName().equals("wearable")) {
                        VMPropertyValue value = property.getPropertyValue();
index d631406..802c1be 100644 (file)
@@ -233,6 +233,9 @@ public class EmulatorVMList {
                        }
                }
 
+               // setting last modified time
+               property.setLastModifiedPropertyFile();
+
                return true;
        }
 
index 771083d..1da0826 100644 (file)
@@ -144,6 +144,10 @@ public class VMProperty {
                return propertyFile;
        }
 
+       public void setLastModifiedPropertyFile() {
+               this.lastModified = propertyFile.lastModified();
+       }
+
        public long getLastModifedPropertyFile() {
                return lastModified;
        }