package org.ovirt.engine.ui.webadmin.section.main.presenter.popup.cluster;

import org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterPolicyModel;
import org.ovirt.engine.ui.webadmin.section.main.presenter.popup.AbstractModelBoundPopupPresenterWidget;

import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;

public class ClusterPolicyPopupPresenterWidget extends AbstractModelBoundPopupPresenterWidget<ClusterPolicyModel, ClusterPolicyPopupPresenterWidget.ViewDef> {

    public interface ViewDef extends AbstractModelBoundPopupPresenterWidget.ViewDef<ClusterPolicyModel> {
    }

    @Inject
    public ClusterPolicyPopupPresenterWidget(EventBus eventBus, ViewDef view) {
        super(eventBus, view);
    }

}
@@ -69,16 +69,89 @@
 uster;%0A%0A
+import org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel;%0A
 import o
@@ -675,16 +675,70 @@
 %0A    %7D%0A%0A
+    private final ClusterListModel clusterListModel;%0A%0A
     @Inj
@@ -821,40 +821,241 @@
 view
-) %7B%0A        super(eventBus, view
+, ClusterListModel clusterListModel) %7B%0A        super(eventBus, view);%0A        this.clusterListModel = clusterListModel;%0A    %7D%0A%0A    @Override%0A    protected void onHide() %7B%0A        super.onHide();%0A        clusterListModel.ForceRefresh(
 );%0A 

refresh cluster policy after edit