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

import org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget;
import org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel;
import org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterPolicyModel;

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> {
    }

    private final ClusterListModel clusterListModel;

    @Inject
    public ClusterPolicyPopupPresenterWidget(EventBus eventBus, ViewDef view, ClusterListModel clusterListModel) {
        super(eventBus, view);
        this.clusterListModel = clusterListModel;
    }

    @Override
    protected void onHide() {
        super.onHide();
        clusterListModel.ForceRefresh();
    }

}

@@ -157,81 +157,8 @@
 et;%0A
-import org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel;%0A
 impo
@@ -585,62 +585,8 @@
  %7D%0A%0A
-    private final ClusterListModel clusterListModel;%0A%0A
     
@@ -673,241 +673,40 @@
 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(
+) %7B%0A        super(eventBus, view
 );%0A 

edit cluster policy doesn't open