From: David G. <mu...@us...> - 2008-12-18 09:57:42
|
Update of /cvsroot/jfreechart/jcommon/source/org/jfree In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17221/source/org/jfree Modified Files: JCommonInfo.java Log Message: Use new ResourceBundleWrapper class to allow applets the option of by-passing the codeBase lookup when loading resources. Index: JCommonInfo.java =================================================================== RCS file: /cvsroot/jfreechart/jcommon/source/org/jfree/JCommonInfo.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** JCommonInfo.java 23 Mar 2006 19:47:05 -0000 1.7 --- JCommonInfo.java 18 Dec 2008 09:57:32 -0000 1.8 *************** *** 3,32 **** * ======================================================================== * ! * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors. ! * * Project Info: http://www.jfree.org/jcommon/index.html * ! * 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. * ! * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] ! * * ---------------- * JCommonInfo.java * ---------------- ! * (C)opyright 2003-2005, by Thomas Morgner and Contributors. * * Original Author: David Gilbert (for Object Refinery Limited); --- 3,32 ---- * ======================================================================== * ! * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. ! * * Project Info: http://www.jfree.org/jcommon/index.html * ! * 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. * ! * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] ! * * ---------------- * JCommonInfo.java * ---------------- ! * (C)opyright 2003-2008, by Thomas Morgner and Contributors. * * Original Author: David Gilbert (for Object Refinery Limited); *************** *** 38,41 **** --- 38,43 ---- * ------- * 07-Jun-2004 : Added JCommon header (DG); + * 18-Dec-2008 : Use ResourceBundleWrapper - see JFreeChart patch 1607918 by + * Jess Thrysoee (DG); * */ *************** *** 51,54 **** --- 53,57 ---- import org.jfree.ui.about.Licences; import org.jfree.ui.about.ProjectInfo; + import org.jfree.util.ResourceBundleWrapper; /** *************** *** 65,69 **** /** * Returns the single instance of this class. ! * * @return The single instance of information about the JCommon library. */ --- 68,72 ---- /** * Returns the single instance of this class. ! * * @return The single instance of information about the JCommon library. */ *************** *** 82,87 **** // get a locale-specific resource bundle... final String baseResourceClass = "org.jfree.resources.JCommonResources"; ! final ResourceBundle resources ! = ResourceBundle.getBundle(baseResourceClass); setName(resources.getString("project.name")); --- 85,90 ---- // get a locale-specific resource bundle... final String baseResourceClass = "org.jfree.resources.JCommonResources"; ! final ResourceBundle resources = ResourceBundleWrapper.getBundle( ! baseResourceClass); setName(resources.getString("project.name")); *************** *** 99,105 **** new Contributor("J. David Eisenberg", "-"), new Contributor("Paul English", "-"), ! new Contributor( ! "David Gilbert", "dav...@ob..." ! ), new Contributor("Hans-Jurgen Greiner", "-"), new Contributor("Arik Levin", "-"), --- 102,107 ---- new Contributor("J. David Eisenberg", "-"), new Contributor("Paul English", "-"), ! new Contributor("David Gilbert", ! "dav...@ob..."), new Contributor("Hans-Jurgen Greiner", "-"), new Contributor("Arik Levin", "-"), *************** *** 117,125 **** )); ! addOptionalLibrary( ! new Library( ! "JUnit", "3.8", "IBM Public Licence", "http://www.junit.org/" ! ) ! ); setBootClass(BaseBoot.class.getName()); --- 119,124 ---- )); ! addOptionalLibrary(new Library("JUnit", "3.8", "IBM Public Licence", ! "http://www.junit.org/")); setBootClass(BaseBoot.class.getName()); |