Subversion Repository Public Repository

litesoft

Diff Revisions 954 vs 955 for /trunk/Java/DATT/src/org/litesoft/datt/client/DATT.java

Diff revisions: vs.
  @@ -15,6 +15,7 @@
15 15 import org.litesoft.commonfoundation.base.*;
16 16 import org.litesoft.commonfoundation.typeutils.gregorian.*;
17 17 import org.litesoft.core.*;
18 + import org.litesoft.commonfoundation.independence.*;
18 19 import org.litesoft.datt.client.accessors.*;
19 20 import org.litesoft.datt.client.boviews.*;
20 21 import org.litesoft.datt.client.ui.views.admin.*;
  @@ -78,9 +79,7 @@
78 79 }
79 80
80 81 public void finishAppLoad() {
81 - ClientContext zContext = ClientContext.get();
82 -
83 - Dev.init( zContext );
82 + Dev.init();
84 83
85 84 AppPanel zAppPanel = new AppPanel( Dev.isDevMode() ? 1 : 0 ); // 1 = see Red Line
86 85
  @@ -112,6 +111,8 @@
112 111 }
113 112 } );
114 113
114 + ClientContext zContext = ClientContext.get();
115 +
115 116 zContext.register( CurrentRestrictedResourceViewAccessor.class, zCSA );
116 117 zContext.register( AbstractCurrentRestrictedResourceViewAccessor.class, zCSA );
117 118
  @@ -229,7 +230,7 @@
229 230 @Override
230 231 public void error( String pError ) {
231 232 if ( Currently.isNullOrEmpty( pError ) ) {
232 - PageRefreshableProxy zRefreshableProxy = ClientContext.get().checkGet( PageRefreshableProxy.class );
233 + PageRefreshableProxy zRefreshableProxy = Instance.ofOptional( PageRefreshableProxy.class );
233 234 if ( zRefreshableProxy != null ) {
234 235 zRefreshableProxy.refreshPage();
235 236 return;