From: Hendrik <nh...@us...> - 2006-09-17 20:27:14
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv26761/src/games/stendhal/client/gui Modified Files: X11KeyConfig.java Log Message: added wrapper method getResult so that the jni stuff (and exceptions) are only an internal responsibility of this class. Index: X11KeyConfig.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/X11KeyConfig.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** X11KeyConfig.java 17 Sep 2006 20:03:10 -0000 1.5 --- X11KeyConfig.java 17 Sep 2006 20:27:10 -0000 1.6 *************** *** 63,67 **** } ! public static native boolean getSetDetectableAutoRepeat(); public native void paint(Graphics g); --- 63,83 ---- } ! private static native boolean getSetDetectableAutoRepeat(); ! ! /** ! * Did the setting of DetectableAutoRepeat work? ! * ! * @return true on success; false otherwise ! */ ! public static boolean getResult() { ! try { ! return getSetDetectableAutoRepeat(); ! } catch (Exception e) { ! logger.error(e, e); ! } catch (Error e) { ! logger.error(e, e); ! } ! return false; ! } public native void paint(Graphics g); |