Lior Vernia has posted comments on this change.

Change subject: webadmin: Added shared MAC pools to configure dialog
......................................................................


Patch Set 11:

(4 comments)

http://gerrit.ovirt.org/#/c/27791/11/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/macpool/SharedMacPoolListModel.java
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/macpool/SharedMacPoolListModel.java:

Line 92:         
model.setTitle(ConstantsManager.getInstance().getConstants().editSharedMacPoolTitle());
Line 93:         model.setHashName("edit_shared_mac_pool"); //$NON-NLS-1$
Line 94:         model.setHelpTag(HelpTag.edit_shared_mac_pool);
Line 95:         setWindow(model);
Line 96:         model.setEntity((MacPool) getSelectedItem());
> Why is setEntity after setting (and showing) the window?
Done
Line 97:     }
Line 98: 
Line 99:     private void removeMacPools() {
Line 100:         ConfirmationModel model = new ConfirmationModel();


Line 110:         
tempVar2.setTitle(ConstantsManager.getInstance().getConstants().cancel());
Line 111:         tempVar2.setIsCancel(true);
Line 112:         model.getCommands().add(tempVar2);
Line 113: 
Line 114:         setConfirmWindow(model);
> Same as the previous comment. Why do you set and show the window before you
Done
Line 115: 
Line 116:         List<String> macPoolNames = new ArrayList<String>();
Line 117:         for (MacPool macPool : (Iterable<MacPool>) 
getSelectedItems()) {
Line 118:             macPoolNames.add(macPool.getName());


http://gerrit.ovirt.org/#/c/27791/11/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/macpool/SharedMacPoolModel.java
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/macpool/SharedMacPoolModel.java:

Line 62: 
Line 63:     @Override
Line 64:     public boolean validate() {
Line 65:         super.validate();
Line 66:         getName().validateEntity(new IValidation[] { new 
NotEmptyValidation() });
> What about the description validation? AsciiOrNoneValidation or something o
Done
Line 67:         setIsValid(getIsValid() && getName().getIsValid());
Line 68:         return getIsValid();
Line 69:     }
Line 70: 


http://gerrit.ovirt.org/#/c/27791/11/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/configure/ConfigurePopupView.ui.xml
File 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/configure/ConfigurePopupView.ui.xml:

Line 43:                             <g:SimplePanel 
addStyleNames="{style.panel}" ui:field="instanceTypesTabPanel" />
Line 44:                         </t:content>
Line 45:                     </t:DialogTab>
Line 46:                 </t:tab>
Line 47:                 <t:tab>
> Please format
Done
Line 48:                     <t:DialogTab ui:field="macPoolsTab">
Line 49:                         <t:content>
Line 50:                             <g:SimplePanel 
addStyleNames="{style.panel}" ui:field="macPoolsTabPanel" />
Line 51:                         </t:content>


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Idabfa4e2abd3c9f0b4af0d28f00a27aa92a6552f
Gerrit-PatchSet: 11
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Lior Vernia <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Lior Vernia <[email protected]>
Gerrit-Reviewer: Martin Mucha <[email protected]>
Gerrit-Reviewer: [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