Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1564 Rev 1633
Line 1... Line 1...
1
package org.tela_botanica.client.util;
1
package org.tela_botanica.client.util;
Line 2... Line 2...
2
 
2
 
-
 
3
import com.google.gwt.core.client.GWT;
Line 3... Line 4...
3
import com.google.gwt.core.client.GWT;
4
import com.google.gwt.user.client.Window;
Line 4... Line 5...
4
 
5
 
5
public class Debug {
6
public class Debug {
6
	
7
	
7
	@Deprecated
8
	@Deprecated
-
 
9
	public static void log(String texte) {
-
 
10
		GWT.log(texte, null);
-
 
11
	}
-
 
12
	
-
 
13
	public static String getStackTraceAsString(int depth) {
-
 
14
		// a décommenter lors de l'utilisation car ne fonctionne qu'en mode 
-
 
15
		// hosted et pas en mode compilé
-
 
16
		/**StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
-
 
17
		String trace = "";
-
 
18
		for (int i = 0; i < stackTraceElements.length && i < depth; i++) {
-
 
19
			if(i == 0) {
-
 
20
				trace += " < ";
-
 
21
			}
-
 
22
			trace += stackTraceElements[i].getClassName()+"."+stackTraceElements[i].getMethodName();
-
 
23
		}	
-
 
24
		return trace;**/
8
	public static void log(String texte) {
25
		return "";
9
		GWT.log(texte, null);
26
	}