Subversion Repositories eFlore/Applications.cel

Rev

Rev 2033 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2033 Rev 2392
Line 3... Line 3...
3
import org.tela_botanica.client.modeles.objets.Configuration;
3
import org.tela_botanica.client.modeles.objets.Configuration;
Line 4... Line 4...
4
 
4
 
5
import com.google.gwt.ajaxloader.client.AjaxLoader;
5
import com.google.gwt.ajaxloader.client.AjaxLoader;
6
import com.google.gwt.ajaxloader.client.AjaxLoader.AjaxLoaderOptions;
6
import com.google.gwt.ajaxloader.client.AjaxLoader.AjaxLoaderOptions;
-
 
7
import com.google.gwt.core.client.EntryPoint;
7
import com.google.gwt.core.client.EntryPoint;
8
import com.google.gwt.core.client.GWT;
-
 
9
import com.google.gwt.user.client.Timer;
8
import com.google.gwt.user.client.Timer;
10
import com.google.gwt.user.client.Window;
9
import com.gwtext.client.core.Ext;
11
import com.gwtext.client.core.Ext;
Line 10... Line 12...
10
import com.gwtext.client.widgets.Viewport;
12
import com.gwtext.client.widgets.Viewport;
11
 
13
 
Line 18... Line 20...
18
	 * This is the entry point method.
20
	 * This is the entry point method.
19
	 */
21
	 */
20
	@Override
22
	@Override
21
	public void onModuleLoad() {	
23
	public void onModuleLoad() {	
Line 22... Line 24...
22
		
24
		
23
		
25
		/*
24
		// A décommenter + compiler en detailed dans le cas d'une erreur
26
		// A décommenter + compiler en detailed dans le cas d'une erreur
25
		// survernant uniquement sur le serveur
27
		// survernant uniquement sur le serveur
26
		/*GWT.setUncaughtExceptionHandler(null);
28
		GWT.setUncaughtExceptionHandler(null);
27
		GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {	
29
		GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {	
28
			@Override
30
			@Override
29
			public void onUncaughtException(Throwable e) {
31
			public void onUncaughtException(Throwable e) {
30
					Window.alert("uncaught: " + e.getMessage());
32
					Window.alert("uncaught: " + e.getMessage());
31
					String s = buildStackTrace(e, "RuntimeException:\n");
33
					String s = buildStackTrace(e, "RuntimeException:\n");
32
					Window.alert(s);
34
					Window.alert(s);
33
					e.printStackTrace();
35
					e.printStackTrace();
34
			}
36
			}
35
		});*/
37
		});
36
		
38
		*/
37
		// TODO: config devrait être un singleton
39
		// TODO: config devrait être un singleton
Line 38... Line 40...
38
		Configuration config = new Configuration();
40
		Configuration config = new Configuration();
39
		
41
		
Line 88... Line 90...
88
		     if (cause != null && cause != t) {
90
		     if (cause != null && cause != t) {
89
		    	 log += buildStackTrace(cause, "CausedBy:\n");
91
		    	 log += buildStackTrace(cause, "CausedBy:\n");
90
		     }
92
		     }
91
	     }
93
	     }
92
	     return log;
94
	     return log;
93
	  }*/
95
	}*/
-
 
96
	
-
 
97
	public static native void  LogVersFirebug(Object o) /*-{
-
 
98
		if (!!($wnd.console && $wnd.console.log)) {
-
 
99
			console.log(o);
-
 
100
		}
-
 
101
	}-*/;
94
}
102
}