package scoutmgr.client.navbar;

import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.HasUiHandlers;
import com.gwtplatform.mvp.client.PresenterWidget;
import com.gwtplatform.mvp.client.proxy.PlaceManager;
import com.gwtplatform.mvp.shared.proxy.PlaceRequest;
import com.gwtplatform.mvp.shared.proxy.PlaceRequest.Builder;
import scoutmgr.client.place.NameTokens;

public class NavbarPresenter
  extends PresenterWidget<NavbarPresenter.View>
  implements NavbarUiHandlers
{
  @Inject
  private PlaceManager _placeManager;

  @Override
  public void gotoEvents()
  {
    final PlaceRequest placeRequest = new Builder().nameToken( NameTokens.getEvents() ).build();
    _placeManager.revealPlace(placeRequest);
  }

  @Override
  public void gotoMembers()
  {
    final PlaceRequest placeRequest = new Builder().nameToken( NameTokens.getMembers() ).build();
    _placeManager.revealPlace(placeRequest);
  }

  interface View
    extends com.gwtplatform.mvp.client.View, HasUiHandlers<NavbarUiHandlers>
  {
  }

  @Inject
  NavbarPresenter( final EventBus eventBus,
                   final View view )
  {
    super( eventBus, view );

    getView().setUiHandlers( this );
  }
}

@@ -533,16 +533,119 @@
 dlers%0A%7B%0A
+  interface View%0A    extends com.gwtplatform.mvp.client.View, HasUiHandlers%3CNavbarUiHandlers%3E%0A  %7B%0A  %7D%0A%0A
   @Injec
@@ -1071,111 +1071,8 @@
  %7D%0A%0A
-  interface View%0A    extends com.gwtplatform.mvp.client.View, HasUiHandlers%3CNavbarUiHandlers%3E%0A  %7B%0A  %7D%0A%0A
   @I

Move view to top of class