Subversion Repository Public Repository

litesoft

Diff Revisions 512 vs 514 for /trunk/GWT_Sandbox/MultiModule/main/src/org/litesoft/sandbox/multimodule/main/client/Main.java

Diff revisions: vs.
  @@ -23,21 +23,21 @@
23 23 RootPanel.get( "CenteredContent" ).add( zAppWidget );
24 24 // zCenteredContent.add( new CubeFace( null, "FrontGroup", Places.Front, Places.Top, Places.Right, Places.Left, Places.Bottom ) );
25 25
26 - ClientFactory clientFactory = new ClientFactoryImpl(); // GWT.create( ClientFactory.class );
27 - // todo: need to have our Application Window support MessageUserSink and set it into the clientFactory
26 + ClientFactoryImpl clientFactory = new ClientFactoryImpl(); // GWT.create( ClientFactory.class );
27 + PlaceActivityMapper pam = new PlaceActivityMapper<ClientFactory>(clientFactory.getEventBus(), clientFactory);
28 + clientFactory.setPlaceChanger(pam);
29 + clientFactory.setMessageUserSink( null ); // todo: need to have our Application Window support MessageUserSink and set it into the clientFactory
28 30 EventBus eventBus = clientFactory.getEventBus();
29 - PlaceController placeController = clientFactory.getPlaceController();
31 + // PlaceController placeController = clientFactory.getPlaceController();
30 32
31 33 // Start ActivityManager for the main widget with our ActivityMapper
32 - ActivityMapper activityMapper = new ActivityFactoryRegistry( clientFactory );
33 - ActivityManager activityManager = new ActivityManager( activityMapper, eventBus );
34 + ActivityManager activityManager = new ActivityManager( pam, eventBus );
34 35 activityManager.setDisplay( zAppWidget );
35 36
36 37 // Start PlaceHistoryHandler with our PlaceHistoryMapper
37 - PlaceHistoryHandler historyHandler = new PlaceHistoryHandler( new PlaceRegistry( clientFactory ) );
38 - historyHandler.register( placeController, eventBus, PlaceRegistry.getDefaultPlace() );
38 + CopyPlaceHistoryHandler historyHandler = new CopyPlaceHistoryHandler( new PlaceRegistry( clientFactory ) );
39 + historyHandler.register( pam, eventBus, PlaceRegistry.getDefaultPlace() );
39 40
40 - RootPanel.get().add( zAppWidget );
41 41 // Goes to the place represented on URL else default place
42 42 historyHandler.handleCurrentHistory();
43 43 }