/*
 * Copyright 2016 Crown Copyright
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package stroom.dashboard.client.gin;

import com.google.inject.Singleton;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;
import com.gwtplatform.mvp.client.RootPresenter;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
import com.gwtplatform.mvp.client.proxy.ParameterTokenFormatter;
import com.gwtplatform.mvp.client.proxy.PlaceManager;
import com.gwtplatform.mvp.client.proxy.TokenFormatter;
import stroom.core.client.gin.InactivePlaceManager;
import stroom.dashboard.client.main.DashboardAppPresenter;
import stroom.dashboard.client.main.DashboardAppViewImpl;
import stroom.editor.client.presenter.EditorPresenter;
import stroom.editor.client.presenter.EditorView;
import stroom.editor.client.view.EditorViewImpl;
import stroom.explorer.client.presenter.EntityTreePresenter;
import stroom.explorer.client.view.EntityTreeViewImpl;
import stroom.widget.dropdowntree.client.presenter.DropDownPresenter;
import stroom.widget.dropdowntree.client.presenter.DropDownTreePresenter;
import stroom.widget.dropdowntree.client.view.DropDownTreeViewImpl;
import stroom.widget.dropdowntree.client.view.DropDownViewImpl;
import stroom.widget.iframe.client.presenter.IFrameContentPresenter;
import stroom.widget.iframe.client.presenter.IFrameContentPresenter.IFrameContentView;
import stroom.widget.iframe.client.view.IFrameContentViewImpl;

public class DashboardAppModule extends AbstractPresenterModule {
    @Override
    protected void configure() {
        // Default implementation of standard resources
        bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
        bind(TokenFormatter.class).to(ParameterTokenFormatter.class).in(Singleton.class);
        bind(RootPresenter.class).asEagerSingleton();
        bind(PlaceManager.class).to(InactivePlaceManager.class).in(Singleton.class);

        bindPresenter(DashboardAppPresenter.class, DashboardAppPresenter.DashboardAppView.class, DashboardAppViewImpl.class, DashboardAppPresenter.DashboardAppProxy.class);

        bindSharedView(DropDownPresenter.DropDrownView.class, DropDownViewImpl.class);
        bindSharedView(DropDownTreePresenter.DropDownTreeView.class, DropDownTreeViewImpl.class);
        bindPresenterWidget(EntityTreePresenter.class, EntityTreePresenter.EntityTreeView.class, EntityTreeViewImpl.class);
        bindPresenterWidget(EditorPresenter.class, EditorView.class, EditorViewImpl.class);
        bindPresenterWidget(IFrameContentPresenter.class, IFrameContentView.class, IFrameContentViewImpl.class);
    }
}

@@ -1968,24 +1968,222 @@
 rame.client.
+presenter.IFramePresenter;%0Aimport stroom.widget.iframe.client.presenter.IFramePresenter.IFrameView;%0Aimport stroom.widget.iframe.client.view.IFrameContentViewImpl;%0Aimport stroom.widget.iframe.client.
 view.IFrameC
@@ -2173,39 +2173,32 @@
 ient.view.IFrame
-Content
 ViewImpl;%0A%0Apubli
@@ -3233,32 +3233,124 @@
 iewImpl.class);%0A
+        bindPresenterWidget(IFramePresenter.class, IFrameView.class, IFrameViewImpl.class);%0A
         bindPres

Fix IFrame content so it doesn't continually refresh