litesoft
Diff Revisions
546
vs
547
for /trunk/GWT_Sandbox/MultiModule/main/src/org/litesoft/sandbox/multimodule/main/client/Main.java
|
@@ -4,7 +4,6 @@ |
4 |
4 |
|
import org.litesoft.sandbox.multimodule.foundation.client.*; |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.core.client.*; |
7 |
|
- |
import com.google.gwt.event.shared.*; |
8 |
7 |
|
import com.google.gwt.user.client.ui.*; |
9 |
8 |
|
|
10 |
9 |
|
/** |
|
@@ -25,21 +24,10 @@ |
25 |
24 |
|
|
26 |
25 |
|
ClientFactoryImpl clientFactory = new ClientFactoryImpl(); // GWT.create( ClientFactory.class ); |
27 |
26 |
|
PlaceActivityManager pam = new PlaceActivityManager<ClientFactory>( zAppWidget, clientFactory ); |
28 |
|
- |
clientFactory.setPlaceChanger(pam); |
29 |
|
- |
clientFactory.setMessageUserSink( new StyledSafeTextMessageUserSink(zMessageUserSinkLabel) ); |
30 |
|
- |
|
31 |
|
- |
EventBus eventBus = clientFactory.getEventBus(); |
32 |
|
- |
// PlaceController placeController = clientFactory.getPlaceController(); |
33 |
|
- |
|
34 |
|
- |
// Start ActivityManager for the main widget with our ActivityMapper |
35 |
|
- |
// ActivityManager activityManager = new ActivityManager( pam, eventBus ); |
36 |
|
- |
// activityManager.setDisplay( zAppWidget ); |
37 |
|
- |
|
38 |
|
- |
// Start PlaceHistoryHandler with our PlaceHistoryMapper |
39 |
|
- |
CopyPlaceHistoryHandler historyHandler = new CopyPlaceHistoryHandler( new PlaceRegistry( clientFactory ) ); |
40 |
|
- |
historyHandler.register( pam, eventBus, PlaceRegistry.getDefaultPlace() ); |
|
27 |
+ |
clientFactory.setPlaceChanger( pam ); |
|
28 |
+ |
clientFactory.setMessageUserSink( new StyledSafeTextMessageUserSink( zMessageUserSinkLabel ) ); |
41 |
29 |
|
|
42 |
30 |
|
// Goes to the place represented on URL else default place |
43 |
|
- |
historyHandler.handleCurrentHistory(); |
|
31 |
+ |
pam.handleCurrentHistory(); |
44 |
32 |
|
} |
45 |
33 |
|
} |