[Title] Fix modify bug temporarily
authorsyeon.hwang <syeon.hwang@samsung.com>
Mon, 26 Mar 2012 13:13:09 +0000 (22:13 +0900)
committersyeon.hwang <syeon.hwang@samsung.com>
Mon, 26 Mar 2012 13:13:09 +0000 (22:13 +0900)
[Type]
[Module] Emulator/
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

src/org/tizen/emulator/manager/ui/detail/VMPropertyView.java
src/org/tizen/emulator/manager/vms/VMsProperty.java

index 0a1301d..4275d80 100644 (file)
@@ -24,6 +24,7 @@ import org.eclipse.swt.widgets.Text;
 import org.tizen.emulator.manager.ui.ResourceRegistry;
 import org.tizen.emulator.manager.ui.ResourceRegistry.ImageName;
 import org.tizen.emulator.manager.vms.Creator;
+import org.tizen.emulator.manager.vms.EmulatorVMs;
 import org.tizen.emulator.manager.vms.VMCreateHelper;
 import org.tizen.emulator.manager.vms.VMPropertyValue;
 import org.tizen.emulator.manager.vms.VMsProperty;
@@ -654,7 +655,7 @@ public class VMPropertyView {
        }
 
        private void checkModifyState() {
-               if (newValue.equals(oldValue)) {
+               if (!newValue.equals(oldValue)) {
                        widget.confirmButton.setEnabled(true);
                } else {
                        widget.confirmButton.setEnabled(false);
@@ -685,7 +686,7 @@ public class VMPropertyView {
                }
                
                msg.open();
-               
+                               
                return p;
        }
 }
index 48e7a6b..4bac1f7 100644 (file)
@@ -19,9 +19,10 @@ public class VMsProperty {
        }
 
        public VMPropertyValue getPropertyValue() {
-               if(this.value == null)
-                       this.value = new VMPropertyValue(this);
-               return value;
+//             if(this.value == null)
+//                     this.value = new VMPropertyValue(this);
+//             return value;
+               return new VMPropertyValue(this); // FIXME
        }
        
        public VMsWorker getWorker() {