litesoft
Diff Revisions
558
vs
559
for /trunk/GWT_Sandbox/MultiModule/main/src/org/litesoft/sandbox/multimodule/main/client/Main.java
|
@@ -18,7 +18,7 @@ |
18 |
18 |
|
public void onModuleLoad() |
19 |
19 |
|
{ |
20 |
20 |
|
System.out.println( "Main.onModuleLoad" ); |
21 |
|
- |
|
|
21 |
+ |
|
22 |
22 |
|
ActivityFactoryRegistry.register( new CachedViewSynchronousActivityFactory<ClientFactory, HomeView, HomePlace>() |
23 |
23 |
|
{ |
24 |
24 |
|
@Override |
|
@@ -39,7 +39,6 @@ |
39 |
39 |
|
return Places.Home.name(); |
40 |
40 |
|
} |
41 |
41 |
|
} ); |
42 |
|
- |
|
43 |
42 |
|
|
44 |
43 |
|
OurLabel zMessageUserSinkLabel = new OurLabel(); |
45 |
44 |
|
SimplePanel zAppWidget = new SimplePanel(); |
|
@@ -48,11 +47,11 @@ |
48 |
47 |
|
RootPanel.get( "Message" ).add( zMessageUserSinkLabel ); |
49 |
48 |
|
|
50 |
49 |
|
ClientFactoryImpl clientFactory = new ClientFactoryImpl(); // GWT.create( ClientFactory.class ); |
51 |
|
- |
PlaceActivityManager pam = new PlaceActivityManager<ClientFactory>( zAppWidget, clientFactory ); |
|
50 |
+ |
PlaceChangerWithCurrentUrlSupport pam = new PlaceActivityManager<ClientFactory>( zAppWidget, clientFactory ); |
52 |
51 |
|
clientFactory.setPlaceChanger( pam ); |
53 |
52 |
|
clientFactory.setMessageUserSink( new StyledSafeTextMessageUserSink( zMessageUserSinkLabel ) ); |
54 |
53 |
|
|
55 |
54 |
|
// Goes to the place represented on URL else default place |
56 |
|
- |
pam.handleCurrentHistory(); |
|
55 |
+ |
pam.goToCurrentUrl(); |
57 |
56 |
|
} |
58 |
57 |
|
} |