Lior Vernia has posted comments on this change.

Change subject: webadmin: Remove NICs from VM Guide Me
......................................................................


Patch Set 1:

(7 comments)

....................................................
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmGuideModel.java
Line 21
Line 22
Line 23
Line 24
Line 25
Done


Line 21:     public final String VmAddAnotherVirtualDiskAction = 
ConstantsManager.getInstance()
Line 22:             .getConstants()
Line 23:             .vmAddAnotherVirtualDiskAction();
Line 24: 
Line 25:     private ArrayList<Disk> disks;
Done
Line 26: 
Line 27:     @Override
Line 28:     public VM getEntity()
Line 29:     {


Line 36:         super.onEntityChanged();
Line 37:         updateOptions();
Line 38:     }
Line 39: 
Line 40:     private void updateOptionsData() {
Moved this into updateOptions(), between them they didn't seem to justify 
having two different methods.
Line 41:         disks = null;
Line 42:         AsyncDataProvider.getVmDiskList(new AsyncQuery(this,
Line 43:                 new INewAsyncCallback() {
Line 44:                     @Override


Line 45:                     public void onSuccess(Object target, Object 
returnValue) {
Line 46:                         VmGuideModel vmGuideModel = (VmGuideModel) 
target;
Line 47:                         ArrayList<Disk> disks = (ArrayList<Disk>) 
returnValue;
Line 48:                         vmGuideModel.disks = disks;
Line 49:                         vmGuideModel.updateOptionsPostData();
Done
Line 50:                     }
Line 51:                 }), getEntity().getId());
Line 52:     }
Line 53: 


Line 51:                 }), getEntity().getId());
Line 52:     }
Line 53: 
Line 54:     private void updateOptionsPostData() {
Line 55:         if (disks == null) {
Done
Line 56:             return;
Line 57:         }
Line 58: 
Line 59:         // Add disk action.


Line 85:             updateOptionsData();
Line 86:         }
Line 87:     }
Line 88: 
Line 89:     public void resetData() {
Done
Line 90:         disks = null;
Line 91:     }
Line 92: 
Line 93:     public void addDisk()


Line 108:         model.setCancelCommand(cancelCommand);
Line 109: 
Line 110:         model.initialize();
Line 111:     }
Line 112: 
Removed this and changed updateOptions() to be public, as once I removed 
resetData() this just calls updateOptions().
Line 113:     public void postAction()
Line 114:     {
Line 115:         resetData();
Line 116:         updateOptions();


-- 
To view, visit http://gerrit.ovirt.org/20754
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I870e7898f788e691741bfc4bc1b24c898ab4100b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Lior Vernia <[email protected]>
Gerrit-Reviewer: Lior Vernia <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to