projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f46df9c
)
2004/01/19 21:12:04
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 08:04:27 +0000
(08:04 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 08:04:27 +0000
(08:04 +0000)
darcs-hash:
20040130080427
-2ba56-
d619a1a3e51f6fa45fa172cc0049c5d5c509a25c
.gz
src/org/xwt/Platform.java
patch
|
blob
|
history
diff --git
a/src/org/xwt/Platform.java
b/src/org/xwt/Platform.java
index
976a142
..
2da2387
100644
(file)
--- a/
src/org/xwt/Platform.java
+++ b/
src/org/xwt/Platform.java
@@
-60,7
+60,11
@@
public abstract class Platform {
}
System.err.println(" " + os_name + " ==> org.xwt.plat." + platform_class);
}
System.err.println(" " + os_name + " ==> org.xwt.plat." + platform_class);
- if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance();
+ try {
+ if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance();
+ } catch (InstantiationException e) {
+ throw e.getCause();
+ }
String term = Platform.getEnv("TERM");
Log.color = term != null && term.length() != 0 && !term.equals("cygwin");
String term = Platform.getEnv("TERM");
Log.color = term != null && term.length() != 0 && !term.equals("cygwin");