projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2003/11/29 03:06:09
[org.ibex.core.git]
/
src
/
org
/
xwt
/
Scheduler.java
diff --git
a/src/org/xwt/Scheduler.java
b/src/org/xwt/Scheduler.java
index
79fba3c
..
1f57fe7
100644
(file)
--- a/
src/org/xwt/Scheduler.java
+++ b/
src/org/xwt/Scheduler.java
@@
-11,7
+11,7
@@
public class Scheduler {
// Public API Exposed to org.xwt /////////////////////////////////////////////////
private static Scheduler singleton;
// Public API Exposed to org.xwt /////////////////////////////////////////////////
private static Scheduler singleton;
- public static abstract class Task { public abstract void perform(); }
+ public static abstract class Task { public abstract void perform() throws Exception; }
public static void add(Task t) { singleton.runnable.append(t); }
public static void init() {
if (singleton != null) return;
public static void add(Task t) { singleton.runnable.append(t); }
public static void init() {
if (singleton != null) return;
@@
-40,8
+40,9
@@
public class Scheduler {
t.perform();
// FEATURE: be smarter about this
Surface.renderAll();
t.perform();
// FEATURE: be smarter about this
Surface.renderAll();
+ } catch (JSExn e) {
+ Log.log(Scheduler.class, e.toString());
} catch (Exception e) {
} catch (Exception e) {
- Log.log(Scheduler.class, "Task threw an exception: " + e);
Log.log(Scheduler.class, e);
}
}
Log.log(Scheduler.class, e);
}
}