Lior Vernia has posted comments on this change.

Change subject: webadmin: gui for adding macPool permissions.
......................................................................


Patch Set 19:

(2 comments)

http://gerrit.ovirt.org/#/c/32211/19/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/CommonModel.java
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/CommonModel.java:

Line 545:         setWindow(model);
Line 546:         
model.setTitle(ConstantsManager.getInstance().getConstants().ConfigureTitle());
Line 547:         model.setHelpTag(HelpTag.configure);
Line 548:         model.setHashName("configure"); //$NON-NLS-1$
Line 549:         //TODO MM: what is this for?
> ok, and what is it for ? :)
I genuinely have no idea. It doesn't seem necessary, as all the models are 
accessible via injection in the configure dialog's presenter...
Line 550:         model.setEntity(new Model[] { roleListModel, 
systemPermissionListModel, clusterPolicyListModel, sharedMacPoolListModel });
Line 551: 
Line 552:         UICommand tempVar = new UICommand("Cancel", this); 
//$NON-NLS-1$
Line 553:         
tempVar.setTitle(ConstantsManager.getInstance().getConstants().close());


http://gerrit.ovirt.org/#/c/32211/19/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/macpool/SharedMacPoolView.java
File 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/macpool/SharedMacPoolView.java:

Line 73:     }
Line 74: 
Line 75:     private void setupAuthorizationTableVisibility() {
Line 76:         final boolean isExactlyOnePoolSelected = 
macPoolTable.getSelectionModel().getSelectedList().size() == 1;
Line 77:         authorizationTable.setVisible(isExactlyOnePoolSelected);
> that's true. But it's also true, that you cannot add anything to SplitLayou
So you can perform:

rootPanel.clear();
if (isExactlyOnePoolSelected) {
    rootPanel.addSouth(authorizationTable, 150);
}
rootPanel.add(macPoolTable);

And then in the constructor above you could call this method with 
isExactlyOnePoolSelected=false to initialize the panel.
Line 78:     }
Line 79: 
Line 80:     private SplitLayoutPanel createRootPanel() {
Line 81:         SplitLayoutPanel rootPanel = new SplitLayoutPanel();


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Idb6b442e7eebce367b9008f4b9c1df9ade84745f
Gerrit-PatchSet: 19
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Mucha <mmu...@redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com>
Gerrit-Reviewer: Lior Vernia <lver...@redhat.com>
Gerrit-Reviewer: Martin Mucha <mmu...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to