From: <cr...@us...> - 2008-10-05 02:46:26
|
Revision: 4605 http://jnode.svn.sourceforge.net/jnode/?rev=4605&view=rev Author: crawley Date: 2008-10-05 02:46:23 +0000 (Sun, 05 Oct 2008) Log Message: ----------- Headers, javadocs and checkstyle changes. Modified Paths: -------------- trunk/core/src/driver/org/jnode/driver/input/KeyboardInterpreter.java trunk/core/src/driver/org/jnode/driver/input/KeyboardInterpreterException.java trunk/core/src/driver/org/jnode/driver/input/KeyboardLayoutManager.java trunk/core/src/driver/org/jnode/driver/input/MissingKeyboardInterpreterClassException.java Modified: trunk/core/src/driver/org/jnode/driver/input/KeyboardInterpreter.java =================================================================== --- trunk/core/src/driver/org/jnode/driver/input/KeyboardInterpreter.java 2008-10-05 02:25:18 UTC (rev 4604) +++ trunk/core/src/driver/org/jnode/driver/input/KeyboardInterpreter.java 2008-10-05 02:46:23 UTC (rev 4605) @@ -63,4 +63,4 @@ */ public KeyboardEvent interpretKeycode(int keycode); -} \ No newline at end of file +} Modified: trunk/core/src/driver/org/jnode/driver/input/KeyboardInterpreterException.java =================================================================== --- trunk/core/src/driver/org/jnode/driver/input/KeyboardInterpreterException.java 2008-10-05 02:25:18 UTC (rev 4604) +++ trunk/core/src/driver/org/jnode/driver/input/KeyboardInterpreterException.java 2008-10-05 02:46:23 UTC (rev 4605) @@ -1,5 +1,31 @@ +/* + * $Id: KeyboardInterpreter.java 4604 2008-10-05 02:25:18Z crawley $ + * + * JNode.org + * Copyright (C) 2003-2006 JNode.org + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library; If not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ package org.jnode.driver.input; +/** + * This exception is thrown to indicate a problem in configuring or using + * a keyboard interpreter. + * + * @author cr...@jn... + */ public class KeyboardInterpreterException extends Exception { public KeyboardInterpreterException(String message, Throwable cause) { Modified: trunk/core/src/driver/org/jnode/driver/input/KeyboardLayoutManager.java =================================================================== --- trunk/core/src/driver/org/jnode/driver/input/KeyboardLayoutManager.java 2008-10-05 02:25:18 UTC (rev 4604) +++ trunk/core/src/driver/org/jnode/driver/input/KeyboardLayoutManager.java 2008-10-05 02:46:23 UTC (rev 4605) @@ -28,7 +28,6 @@ import java.util.TreeSet; import org.apache.log4j.Logger; -import org.apache.log4j.Priority; import org.jnode.plugin.ConfigurationElement; import org.jnode.plugin.Extension; import org.jnode.plugin.ExtensionPoint; @@ -207,7 +206,8 @@ } /** - * Register a keyboard interpreter factory object. + * Register a keyboard interpreter factory object. This factory could be an + * instance of {@link KIClassWrapper} or some other factory. * * @param name the keyboard layout identifier. * @param factory the factory to be registered. @@ -305,7 +305,7 @@ * This wrapper class allows us to treat a class name as a keyboard interpreter * factory. */ - private static class KIClassWrapper implements KeyboardInterpreter.Factory { + public static class KIClassWrapper implements KeyboardInterpreter.Factory { private final String className; /** Modified: trunk/core/src/driver/org/jnode/driver/input/MissingKeyboardInterpreterClassException.java =================================================================== --- trunk/core/src/driver/org/jnode/driver/input/MissingKeyboardInterpreterClassException.java 2008-10-05 02:25:18 UTC (rev 4604) +++ trunk/core/src/driver/org/jnode/driver/input/MissingKeyboardInterpreterClassException.java 2008-10-05 02:46:23 UTC (rev 4605) @@ -1,5 +1,31 @@ +/* + * $Id: KeyboardInterpreter.java 4604 2008-10-05 02:25:18Z crawley $ + * + * JNode.org + * Copyright (C) 2003-2006 JNode.org + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library; If not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ package org.jnode.driver.input; +/** + * This exception is thrown to indicate that a keyboard layout identifier maps + * to a non-existent {@link KeyboardInterpreter} class. + * + * @author cr...@jn... + */ public class MissingKeyboardInterpreterClassException extends KeyboardInterpreterException { public MissingKeyboardInterpreterClassException(String message, Throwable cause) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |