japi-cvs Mailing List for JAPI (Page 4)
Status: Beta
Brought to you by:
christianhujer
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
(115) |
May
(11) |
Jun
(5) |
Jul
(2) |
Aug
(10) |
Sep
(35) |
Oct
(14) |
Nov
(49) |
Dec
(27) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(57) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(25) |
Jun
(134) |
Jul
(76) |
Aug
(34) |
Sep
(27) |
Oct
(5) |
Nov
|
Dec
(1) |
2008 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(63) |
Nov
(30) |
Dec
(43) |
2009 |
Jan
(10) |
Feb
(420) |
Mar
(67) |
Apr
(3) |
May
(61) |
Jun
(21) |
Jul
(19) |
Aug
|
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
(7) |
May
(3) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: <chr...@us...> - 2009-06-06 14:24:21
|
Revision: 1335 http://japi.svn.sourceforge.net/japi/?rev=1335&view=rev Author: christianhujer Date: 2009-06-06 14:23:50 +0000 (Sat, 06 Jun 2009) Log Message: ----------- Correct module.properties to make the jar executable. Modified Paths: -------------- tools/midiDeviceLister/trunk/module.properties Modified: tools/midiDeviceLister/trunk/module.properties =================================================================== --- tools/midiDeviceLister/trunk/module.properties 2009-05-23 23:21:55 UTC (rev 1334) +++ tools/midiDeviceLister/trunk/module.properties 2009-06-06 14:23:50 UTC (rev 1335) @@ -19,6 +19,6 @@ name=MidiDeviceLister shortname=MidiDeviceLister title=MidiDeviceLister -package=net.sf.japi.midiDeviceLister -package.path=net/sf/japi/midiDeviceLister -main.class=net.sf.japi.midiDeviceLister.MidiDeviceLister +package=net.sf.japi.tools.midiDeviceLister +package.path=net/sf/japi/tools/midiDeviceLister +main.class=net.sf.japi.tools.midiDeviceLister.MidiDeviceLister This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 23:22:03
|
Revision: 1334 http://japi.svn.sourceforge.net/japi/?rev=1334&view=rev Author: christianhujer Date: 2009-05-23 23:21:55 +0000 (Sat, 23 May 2009) Log Message: ----------- Fixed issues found by findbugs. Modified Paths: -------------- progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Batch.java progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Job.java progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/JobRun.java progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Project.java progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/ShellPane.java Modified: progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Batch.java =================================================================== --- progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Batch.java 2009-05-23 22:31:01 UTC (rev 1333) +++ progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Batch.java 2009-05-23 23:21:55 UTC (rev 1334) @@ -23,6 +23,9 @@ */ public class Batch extends AbstractChangeable { + /** Serial version. */ + private static final long serialVersionUID = 1L; + /** The title of this batch. * @serial include */ Modified: progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Job.java =================================================================== --- progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Job.java 2009-05-23 22:31:01 UTC (rev 1333) +++ progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Job.java 2009-05-23 23:21:55 UTC (rev 1334) @@ -19,6 +19,7 @@ import java.io.File; import java.io.IOException; +import java.io.ObjectInputStream; import java.util.ArrayList; import java.util.Map; import net.sf.japi.swing.misc.CollectionsListModel; @@ -31,6 +32,9 @@ */ public class Job extends AbstractChangeable { + /** Serial version. */ + private static final long serialVersionUID = 1L; + /** The title. * @serial include */ @@ -38,9 +42,9 @@ /** The environment. * Inherited from parent if <code>null</code>. - * @serial include + * @serial exclude */ - @Nullable private Map<String, String> env; + @Nullable private transient Map<String, String> env; /** The command line with its arguments. * @serial include @@ -62,6 +66,13 @@ this.title = title; } + /** {@inheritDoc} */ + private void readObject(@NotNull final ObjectInputStream in) throws ClassNotFoundException, IOException { + in.defaultReadObject(); + processBuilder = new ProcessBuilder(command); + env = processBuilder.environment(); + } + /** Returns the current working directory. * @return The current working directory. */ Modified: progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/JobRun.java =================================================================== --- progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/JobRun.java 2009-05-23 22:31:01 UTC (rev 1333) +++ progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/JobRun.java 2009-05-23 23:21:55 UTC (rev 1334) @@ -42,12 +42,6 @@ /** The job that is run. */ private final Job job; - /** The output of the job. */ - private String output; - - /** The return value of the job. */ - private int retVal; - /** Creates a JobRun. * @param jobRunView JobRunView for displaying the job run. * @param job Job to run. @@ -60,13 +54,16 @@ /** {@inheritDoc} */ @Override public Object doInBackground() { - final StringBuilder sb = new StringBuilder(); try { final Process p = job.start(); final Reader in = /*new BufferedReader*/(new InputStreamReader(p.getInputStream())); - final char[] buf = new char[4096]; - for (int charsRead; (charsRead = in.read(buf)) != -1;) { - publish(new String(buf, 0, charsRead)); + try { + final char[] buf = new char[4096]; + for (int charsRead; (charsRead = in.read(buf)) != -1;) { + publish(new String(buf, 0, charsRead)); + } + } finally { + in.close(); } } catch (final Throwable e) { publish(e.toString()); Modified: progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Project.java =================================================================== --- progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Project.java 2009-05-23 22:31:01 UTC (rev 1333) +++ progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/Project.java 2009-05-23 23:21:55 UTC (rev 1334) @@ -25,6 +25,9 @@ */ public class Project implements Changeable { + /** Serial version. */ + private static final long serialVersionUID = 1L; + /** List with all jobs. * @serial include */ Modified: progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/ShellPane.java =================================================================== --- progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/ShellPane.java 2009-05-23 22:31:01 UTC (rev 1333) +++ progs/batcher/trunk/src/prj/net/sf/japi/progs/batcher/ShellPane.java 2009-05-23 23:21:55 UTC (rev 1334) @@ -40,6 +40,9 @@ */ public class ShellPane extends JPanel implements ActionListener { + /** Serial version. */ + private static final long serialVersionUID = 1L; + /** The terminal screen. */ private final JTextArea textArea = new JTextArea(25, 80); @@ -52,11 +55,15 @@ /** Button for stopping the current process. */ private final JButton stop = new JButton("stop"); - /** ProcessBuilder for starting processes. */ - private final ProcessBuilder processBuilder = new ProcessBuilder().redirectErrorStream(true); + /** ProcessBuilder for starting processes. + * @serial exclude + */ + private transient ProcessBuilder processBuilder = new ProcessBuilder().redirectErrorStream(true); - /** Running shell process. */ - private ShellWorker worker; + /** Running shell process. + * @serial exclude + */ + private transient ShellWorker worker; /** Create a ShellPane. */ public ShellPane() { @@ -142,15 +149,19 @@ private Process p; /** {@inheritDoc} */ - @Override public Object doInBackground() { - final StringBuilder sb = new StringBuilder(); + @Override + public Object doInBackground() { try { p = processBuilder.start(); try { final Reader in = new InputStreamReader(p.getInputStream()); - final char[] buf = new char[4096]; - for (int charsRead; !isCancelled() && (charsRead = in.read(buf)) != -1;) { - publish(new String(buf, 0, charsRead)); + try { + final char[] buf = new char[4096]; + for (int charsRead; !isCancelled() && (charsRead = in.read(buf)) != -1;) { + publish(new String(buf, 0, charsRead)); + } + } finally { + in.close(); } } finally { p.destroy(); @@ -162,7 +173,8 @@ } /** {@inheritDoc} */ - @Override public void process(final List<String> chunks) { + @Override + public void process(final List<String> chunks) { for (final String s : chunks) { textArea.append(s); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 22:31:09
|
Revision: 1333 http://japi.svn.sourceforge.net/japi/?rev=1333&view=rev Author: christianhujer Date: 2009-05-23 22:31:01 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix issues found by findbugs. Modified Paths: -------------- libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModel.java libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java Modified: libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModel.java =================================================================== --- libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModel.java 2009-05-23 20:02:38 UTC (rev 1332) +++ libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModel.java 2009-05-23 22:31:01 UTC (rev 1333) @@ -18,6 +18,7 @@ package net.sf.japi.swing.treetable; +import java.io.Serializable; import javax.swing.table.TableModel; import javax.swing.tree.TreeModel; @@ -33,7 +34,7 @@ * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @since 0.1 */ -public interface TreeTableModel<R, T> { +public interface TreeTableModel<R, T> extends Serializable { /** Returns a child with a certain index. * @param parent Node to return child for Modified: libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java =================================================================== --- libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java 2009-05-23 20:02:38 UTC (rev 1332) +++ libs/swing-treetable/trunk/src/prj/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java 2009-05-23 22:31:01 UTC (rev 1333) @@ -33,6 +33,9 @@ */ public class TreeTableModelTreeModelAdapter<R, T> implements TreeModel, Serializable { + /** Serial version. */ + private static final long serialVersionUID = 1L; + /** The Event listener list for registering TreeModelListeners. * @serial include */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 20:02:40
|
Revision: 1332 http://japi.svn.sourceforge.net/japi/?rev=1332&view=rev Author: christianhujer Date: 2009-05-23 20:02:38 +0000 (Sat, 23 May 2009) Log Message: ----------- Add missing module.properties. Added Paths: ----------- games/jmines/trunk/module.properties Added: games/jmines/trunk/module.properties =================================================================== --- games/jmines/trunk/module.properties (rev 0) +++ games/jmines/trunk/module.properties 2009-05-23 20:02:38 UTC (rev 1332) @@ -0,0 +1,24 @@ +# +# Copyright (C) 2009 Christian Hujer +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +update.focus=none +name=JMines +shortname=JMines +title=JMines +package=net.sf.japi.jmines +package.path=net/sf/japi/games/jmines +main.class=net.sf.japi.games.jmines.JMines Property changes on: games/jmines/trunk/module.properties ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 19:16:13
|
Revision: 1331 http://japi.svn.sourceforge.net/japi/?rev=1331&view=rev Author: christianhujer Date: 2009-05-23 19:16:12 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix bugs found by findbugs. Modified Paths: -------------- libs/argparser/trunk/src/prj/net/sf/japi/io/args/ArgParser.java libs/argparser/trunk/src/prj/net/sf/japi/io/args/CharsetDisplaynameComparator.java libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/ArgParser.java =================================================================== --- libs/argparser/trunk/src/prj/net/sf/japi/io/args/ArgParser.java 2009-05-23 16:38:35 UTC (rev 1330) +++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/ArgParser.java 2009-05-23 19:16:12 UTC (rev 1331) @@ -82,6 +82,7 @@ * @throws UnknownOptionException In case an option was specified that's not supported. * @throws ArgumentFileNotFoundException in case an argument file was not found. */ + @edu.umd.cs.findbugs.annotations.SuppressWarnings("DM_EXIT") private ArgParser(@NotNull final Command command, @NotNull final String... args) throws TerminalException, RequiredOptionsMissingException, UnknownOptionException, MissingArgumentException, ArgumentFileNotFoundException { this.command = command; commandClass = command.getClass(); Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/CharsetDisplaynameComparator.java =================================================================== --- libs/argparser/trunk/src/prj/net/sf/japi/io/args/CharsetDisplaynameComparator.java 2009-05-23 16:38:35 UTC (rev 1330) +++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/CharsetDisplaynameComparator.java 2009-05-23 19:16:12 UTC (rev 1331) @@ -22,6 +22,8 @@ import java.util.Comparator; import java.util.Locale; import java.text.Collator; +import java.io.IOException; +import java.io.ObjectInputStream; import java.io.Serializable; import org.jetbrains.annotations.NotNull; @@ -46,7 +48,7 @@ /** The Collator to use for comparing the display name. * @serial include */ - @NotNull private final Collator collator; + @NotNull private transient Collator collator; /** Create a CharsetDisplaynameComparator based on the default locale. * The default locale is queried when the CharsetDisplaynameComparator is created. @@ -68,4 +70,10 @@ public int compare(@NotNull final Charset o1, @NotNull final Charset o2) { return collator.compare(o1.displayName(locale), o2.displayName(locale)); } + + /** {@inheritDoc} */ + private void readObject(@NotNull final ObjectInputStream in) throws ClassNotFoundException, IOException { + in.defaultReadObject(); + collator = Collator.getInstance(locale); + } } Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java =================================================================== --- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-05-23 16:38:35 UTC (rev 1330) +++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-05-23 19:16:12 UTC (rev 1331) @@ -97,11 +97,8 @@ */ @Nullable public <T> Converter<T> getConverter(@NotNull final Class<T> clazz) { //noinspection unchecked - @Nullable Converter<T> converter = null; + @Nullable Converter<T> converter = (Converter<T>) converters.get(clazz); if (converter == null) { - converter = (Converter<T>) converters.get(clazz); - } - if (converter == null) { converter = getConstructorConverter(clazz); } if (converter == null && Enum.class.isAssignableFrom(clazz)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 16:38:36
|
Revision: 1330 http://japi.svn.sourceforge.net/japi/?rev=1330&view=rev Author: christianhujer Date: 2009-05-23 16:38:35 +0000 (Sat, 23 May 2009) Log Message: ----------- Add findbugs. Modified Paths: -------------- common/trunk/commonBuild.xml Modified: common/trunk/commonBuild.xml =================================================================== --- common/trunk/commonBuild.xml 2009-05-23 16:36:55 UTC (rev 1329) +++ common/trunk/commonBuild.xml 2009-05-23 16:38:35 UTC (rev 1330) @@ -91,6 +91,7 @@ <available property="hasPack200" file="${commonPath}/antlib.auto/Pack200Task.jar" /> <available property="hasPmd" file="${commonPath}/antlib.auto/pmd-4.2.5.jar" /> <available property="hasTaglets" file="${commonPath}/antlib.auto/japi-lib-taglets.jar" /> +<available property="hasFindbugs" file="${commonPath}/antlib.auto/findbugs-1.3.8/lib/findbugs-ant.jar" /> <!-- targets are sorted alphabetically. --> @@ -538,3 +539,22 @@ </fileset> </pmd> </target> + +<target name="getFindbugs" unless="hasFindbugs"> + <mkdir dir="${commonPath}/antlib.auto" /> + <get src="http://downloads.sourceforge.net/findbugs/findbugs-1.3.8.tar.gz" dest="${commonPath}/antlib.auto/findbugs-1.3.8.tar.gz" usetimestamp="true" /> + <untar src="${commonPath}/antlib.auto/findbugs-1.3.8.tar.gz" dest="${commonPath}/antlib.auto" compression="gzip" /> +</target> + +<target name="findbugs" description="Performs quality checks using FindBugs." depends="compile,getFindbugs"> + <taskdef classpath="${commonPath}/antlib.auto/findbugs-1.3.8/lib/findbugs-ant.jar" name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" /> + <findbugs + home="${commonPath}/antlib.auto/findbugs-1.3.8/" + output="emacs" + reportLevel="low" + > + <sourcePath path="src/prj" /> + <class location="classes/production/${module.shortname}" /> + <auxClasspath refid="class.path" /> + </findbugs> +</target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 16:37:03
|
Revision: 1329 http://japi.svn.sourceforge.net/japi/?rev=1329&view=rev Author: christianhujer Date: 2009-05-23 16:36:55 +0000 (Sat, 23 May 2009) Log Message: ----------- Enable -Xlint:all for javac. Modified Paths: -------------- common/trunk/commonBuild.xml Modified: common/trunk/commonBuild.xml =================================================================== --- common/trunk/commonBuild.xml 2009-05-23 15:34:37 UTC (rev 1328) +++ common/trunk/commonBuild.xml 2009-05-23 16:36:55 UTC (rev 1329) @@ -204,6 +204,7 @@ target="${javaversion}" debug="yes" > + <compilerarg value="-Xlint:all" /> <classpath refid="class.path" /> <exclude name="**/package-info.java" /> </javac> @@ -480,6 +481,7 @@ target="${javaversion}" debug="yes" > + <compilerarg value="-Xlint:all" /> <classpath refid="class.path" /> <classpath location="${commonPath}/antlib.auto/junit.jar" /> <classpath location="classes/production/${module.shortname}" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 15:34:44
|
Revision: 1328 http://japi.svn.sourceforge.net/japi/?rev=1328&view=rev Author: christianhujer Date: 2009-05-23 15:34:37 +0000 (Sat, 23 May 2009) Log Message: ----------- Add convenience copy method that copies files, not streams. Modified Paths: -------------- libs/io/trunk/src/prj/net/sf/japi/io/IOUtils.java Modified: libs/io/trunk/src/prj/net/sf/japi/io/IOUtils.java =================================================================== --- libs/io/trunk/src/prj/net/sf/japi/io/IOUtils.java 2009-05-23 14:42:28 UTC (rev 1327) +++ libs/io/trunk/src/prj/net/sf/japi/io/IOUtils.java 2009-05-23 15:34:37 UTC (rev 1328) @@ -18,6 +18,9 @@ package net.sf.japi.io; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -56,6 +59,27 @@ } } + /** Copies a file. + * + * @param fromFile File to copy. + * @param toFile File to be the copy. + * + * @throws IOException in case of I/O problems. + */ + public static void copy(@NotNull final File fromFile, @NotNull final File toFile) throws IOException { + final InputStream in = new FileInputStream(fromFile); + try { + final OutputStream out = new FileOutputStream(toFile); + try { + copy(in, out); + } finally { + out.close(); + } + } finally { + in.close(); + } + } + /** Returns an iterable for lines from the specified reader. * @param in Reader for which to return lines. * @return An iterable for the lines of the specified reader. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:42:30
|
Revision: 1327 http://japi.svn.sourceforge.net/japi/?rev=1327&view=rev Author: christianhujer Date: 2009-05-23 14:42:28 +0000 (Sat, 23 May 2009) Log Message: ----------- Add PMD to test target. Modified Paths: -------------- common/trunk/commonBuild.xml Modified: common/trunk/commonBuild.xml =================================================================== --- common/trunk/commonBuild.xml 2009-05-23 14:39:36 UTC (rev 1326) +++ common/trunk/commonBuild.xml 2009-05-23 14:42:28 UTC (rev 1327) @@ -463,7 +463,7 @@ </javadoc> </target> -<target name="test" description="Performs all tests (static and dynamic)" depends="checkstyle, unittest" /> +<target name="test" description="Performs all tests (static and dynamic)" depends="checkstyle, unittest, pmd" /> <target name="getJunit" unless="hasJunit"> <get src="http://downloads.sourceforge.net/junit/junit-4.5.jar" dest="${commonPath}/antlib.auto/junit.jar" usetimestamp="true" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:39:49
|
Revision: 1326 http://japi.svn.sourceforge.net/japi/?rev=1326&view=rev Author: christianhujer Date: 2009-05-23 14:39:36 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix PMD issues. Modified Paths: -------------- tools/cstyle/trunk/src/prj/net/sf/japi/cstyle/LineEndingParser.java Modified: tools/cstyle/trunk/src/prj/net/sf/japi/cstyle/LineEndingParser.java =================================================================== --- tools/cstyle/trunk/src/prj/net/sf/japi/cstyle/LineEndingParser.java 2009-05-23 14:39:06 UTC (rev 1325) +++ tools/cstyle/trunk/src/prj/net/sf/japi/cstyle/LineEndingParser.java 2009-05-23 14:39:36 UTC (rev 1326) @@ -46,7 +46,7 @@ ? carriageReturn ? NewLine.DOS : NewLine.UNIX : carriageReturn ? NewLine.MAC : null; carriageReturn = c == ASCII_CR; - if (newLineFound != null && newLineFound != desiredNewLine) { + if (newLineFound != null && newLineFound != desiredNewLine) { // NOPMD // TODO:2009-02-18:christianhujer:Finish implementation. } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:39:14
|
Revision: 1325 http://japi.svn.sourceforge.net/japi/?rev=1325&view=rev Author: christianhujer Date: 2009-05-23 14:39:06 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix PMD issues. Modified Paths: -------------- progs/jirus/trunk/src/prj/net/sf/jirus/MyReceiver.java Modified: progs/jirus/trunk/src/prj/net/sf/jirus/MyReceiver.java =================================================================== --- progs/jirus/trunk/src/prj/net/sf/jirus/MyReceiver.java 2009-05-23 14:38:13 UTC (rev 1324) +++ progs/jirus/trunk/src/prj/net/sf/jirus/MyReceiver.java 2009-05-23 14:39:06 UTC (rev 1325) @@ -54,7 +54,7 @@ final byte[] messageData = message.getMessage(); boolean echoMessage = true; if (messageData.length != 1 || messageData[0] != (byte) ShortMessage.TIMING_CLOCK) { - if (message instanceof ShortMessage) { + if (message instanceof ShortMessage) { // NOPMD final ShortMessage smg = (ShortMessage) message; final int cmd = smg.getCommand(); if (cmd == ShortMessage.NOTE_ON || cmd == ShortMessage.NOTE_OFF) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:38:16
|
Revision: 1324 http://japi.svn.sourceforge.net/japi/?rev=1324&view=rev Author: christianhujer Date: 2009-05-23 14:38:13 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix PMD issues. Modified Paths: -------------- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java 2009-05-23 14:38:10 UTC (rev 1323) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java 2009-05-23 14:38:13 UTC (rev 1324) @@ -232,7 +232,7 @@ /** File Selection Action. */ public void selectFile() { final int res = fileChooser.showOpenDialog(this); - if (res == JFileChooser.CANCEL_OPTION) { + if (res == JFileChooser.CANCEL_OPTION) { // NOPMD // Nothing to do in case of cancel. } else if (res == JFileChooser.APPROVE_OPTION) { try { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java 2009-05-23 14:38:10 UTC (rev 1323) +++ progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java 2009-05-23 14:38:13 UTC (rev 1324) @@ -164,7 +164,7 @@ } /** {@inheritDoc} */ - @Override protected Object clone() throws CloneNotSupportedException { + @Override protected Object clone() throws CloneNotSupportedException { // NOPMD return super.clone(); } @@ -205,7 +205,7 @@ } /** {@inheritDoc} */ - @Override protected Object clone() throws CloneNotSupportedException { + @Override protected Object clone() throws CloneNotSupportedException { // NOPMD return super.clone(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:38:12
|
Revision: 1323 http://japi.svn.sourceforge.net/japi/?rev=1323&view=rev Author: christianhujer Date: 2009-05-23 14:38:10 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix PMD issues. Modified Paths: -------------- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DisposeAction.java libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DummyAction.java libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ReflectionAction.java libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ToggleAction.java Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java 2009-05-23 14:32:28 UTC (rev 1322) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java 2009-05-23 14:38:10 UTC (rev 1323) @@ -89,10 +89,10 @@ if (baseName == null) { throw new NullPointerException("null bundle name not allowed"); } - @NotNull final ResourceBundle newBundle = getBundle(baseName); + final ResourceBundle newBundle = getBundle(baseName); addBundle(newBundle); try { - @Nullable final String additionalBundles = newBundle.getString("ActionBuilder.additionalBundles"); + final String additionalBundles = newBundle.getString("ActionBuilder.additionalBundles"); if (additionalBundles != null) { for (final String additionalBundle : additionalBundles.split("\\s+")) { addBundle(additionalBundle); @@ -149,7 +149,7 @@ } for (int i = 0; i < menu.getItemCount(); i++) { final JMenuItem item = menu.getItem(i); - if (item == null) { + if (item == null) { // NOPMD // Ignore Separators } else if (item.getAction() == action) { return item; @@ -465,7 +465,7 @@ public JMenu createMenu(final boolean store, final String menuKey, final String... keys) throws Error { final JMenu menu = new JMenu(createAction(store, menuKey)); for (final String key : keys) { - if (key != null && key.length() == 0) { + if (key != null && key.length() == 0) { // NOPMD /* ignore this for empty menus */ } else if (key == null || "-".equals(key) || "|".equals(key)) { menu.addSeparator(); @@ -545,7 +545,7 @@ throw new MissingResourceException(this + " has no definition for popup " + popupKey, getClass().getName(), popupKey + ".menu"); } for (final String key : popupDefinition.split("\\s+")) { - if (key != null && key.length() == 0) { + if (key != null && key.length() == 0) { // NOPMD /* ignore this for empty menus */ } else if (key == null || "-".equals(key) || "|".equals(key)) { menu.addSeparator(); @@ -581,7 +581,7 @@ throw new MissingResourceException(this + " has no definition for menu " + menuKey, getClass().getName(), menuKey + ".menu"); } for (final String key : menuDefinition.split("\\s+")) { - if (key != null && key.length() == 0) { + if (key != null && key.length() == 0) { // NOPMD /* ignore this for empty menus */ } else if (key == null || "-".equals(key) || "|".equals(key)) { menu.addSeparator(); @@ -635,7 +635,7 @@ throw new MissingResourceException(this + " has no definition for popup " + popupKey, getClass().getName(), popupKey + ".menu"); } for (final String key : popupDefinition.split("\\s+")) { - if (key != null && key.length() == 0) { + if (key != null && key.length() == 0) { // NOPMD /* ignore this for empty menus */ } else if (key == null || "-".equals(key) || "|".equals(key)) { menu.addSeparator(); @@ -678,7 +678,7 @@ throw new MissingResourceException(this + " has no definition for menu " + menuKey, getClass().getName(), menuKey + ".menu"); } for (final String key : menuDefinition.split("\\s+")) { - if (key != null && key.length() == 0) { + if (key != null && key.length() == 0) { // NOPMD /* ignore this for empty menus */ } else if (key == null || "-".equals(key) || "|".equals(key)) { menu.addSeparator(); @@ -896,7 +896,7 @@ * @throws IllegalStateException if no preferences are associated */ public int showOnetimeConfirmDialog(@Nullable final Component parentComponent, final int optionType, final int messageType, @NotNull final String key, final Object... args) throws IllegalStateException { - @NonNls String showString = getString(key + ".show"); + String showString = getString(key + ".show"); if (showString == null) { showString = getString(key + ".showDefault"); } @@ -933,7 +933,7 @@ * @throws IllegalStateException if no preferences are associated */ public void showOnetimeMessageDialog(@Nullable final Component parentComponent, final int messageType, @NotNull final String key, final Object... args) throws IllegalStateException { - @NonNls String showString = getString(key + ".show"); + String showString = getString(key + ".show"); if (showString == null) { showString = getString(key + ".showDefault"); } Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DisposeAction.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DisposeAction.java 2009-05-23 14:32:28 UTC (rev 1322) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DisposeAction.java 2009-05-23 14:38:10 UTC (rev 1323) @@ -75,7 +75,7 @@ } /** {@inheritDoc} */ - @Override protected Object clone() throws CloneNotSupportedException { + @Override protected Object clone() throws CloneNotSupportedException { // NOPMD return super.clone(); } Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DummyAction.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DummyAction.java 2009-05-23 14:32:28 UTC (rev 1322) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DummyAction.java 2009-05-23 14:38:10 UTC (rev 1323) @@ -47,7 +47,7 @@ } /** {@inheritDoc} */ - @Override protected Object clone() throws CloneNotSupportedException { + @Override protected Object clone() throws CloneNotSupportedException { // NOPMD return super.clone(); } Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ReflectionAction.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ReflectionAction.java 2009-05-23 14:32:28 UTC (rev 1322) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ReflectionAction.java 2009-05-23 14:38:10 UTC (rev 1323) @@ -130,7 +130,7 @@ putValue(REFLECTION_METHOD, null); } if (REFLECTION_METHOD.equals(key)) { - if (!(newValue == null || newValue instanceof Method)) { + if (!(newValue == null || newValue instanceof Method)) { // NOPMD if (newValue instanceof String) { throw new IllegalArgumentException("Value for key REFLECTION_METHOD must be of type " + Method.class.getName() + " but was " + String.class.getName() + " so you might want to use the key REFLECTION_METHOD_NAME instead."); } else { @@ -139,7 +139,7 @@ } } if (REFLECTION_TARGET.equals(key)) { - if (newValue == null) { + if (newValue == null) { // NOPMD putValue(REFLECTION_METHOD, null); } } @@ -272,7 +272,7 @@ } /** {@inheritDoc} */ - @Override protected Object clone() throws CloneNotSupportedException { + @Override protected Object clone() throws CloneNotSupportedException { // NOPMD return super.clone(); } Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ToggleAction.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ToggleAction.java 2009-05-23 14:32:28 UTC (rev 1322) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ToggleAction.java 2009-05-23 14:38:10 UTC (rev 1323) @@ -96,7 +96,7 @@ } /** {@inheritDoc} */ - @Override protected Object clone() throws CloneNotSupportedException { + @Override protected Object clone() throws CloneNotSupportedException { // NOPMD return super.clone(); } @@ -127,7 +127,7 @@ */ @Override public void putValue(final String key, final Object newValue) throws IllegalArgumentException { if (REFLECTION_PROPERTY_NAME.equals(key)) { - if (newValue != null && !(newValue instanceof String)) { + if (newValue != null && !(newValue instanceof String)) { // NOPMD throw new IllegalArgumentException("Value for key REFLECTION_PROPERTY_NAME must be of type " + String.class.getName() + " but was " + newValue.getClass().getName()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:32:41
|
Revision: 1322 http://japi.svn.sourceforge.net/japi/?rev=1322&view=rev Author: christianhujer Date: 2009-05-23 14:32:28 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix PMD issues. Modified Paths: -------------- libs/swing-about/trunk/src/prj/net/sf/japi/swing/about/AboutDialog.java Modified: libs/swing-about/trunk/src/prj/net/sf/japi/swing/about/AboutDialog.java =================================================================== --- libs/swing-about/trunk/src/prj/net/sf/japi/swing/about/AboutDialog.java 2009-05-23 14:23:00 UTC (rev 1321) +++ libs/swing-about/trunk/src/prj/net/sf/japi/swing/about/AboutDialog.java 2009-05-23 14:32:28 UTC (rev 1322) @@ -141,9 +141,9 @@ this.actionBuilder = actionBuilder; tabs = new JTabbedPane(); licensePane = buildLicenseTab(); - @Nullable final String logoURLString = actionBuilder.getString("about.logo"); + final String logoURLString = actionBuilder.getString("about.logo"); if (logoURLString != null) { - @Nullable final URL logoURL = getClass().getClassLoader().getResource(logoURLString); + final URL logoURL = getClass().getClassLoader().getResource(logoURLString); if (logoURL != null) { add(new JLabel(new ImageIcon(logoURL)), BorderLayout.NORTH); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:23:07
|
Revision: 1321 http://japi.svn.sourceforge.net/japi/?rev=1321&view=rev Author: christianhujer Date: 2009-05-23 14:23:00 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix issue found by PMD. Modified Paths: -------------- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2009-05-23 14:21:22 UTC (rev 1320) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2009-05-23 14:23:00 UTC (rev 1321) @@ -241,11 +241,9 @@ @ActionMethod public void fileClose() { final Document<D> currentDocument = this.currentDocument; - if (currentDocument != null) { - if (close(currentDocument)) { - // TODO:2009-02-15:christianhujer:Finish implementation - documents.remove(currentDocument); - } + if (currentDocument != null && close(currentDocument)) { + // TODO:2009-02-15:christianhujer:Finish implementation + documents.remove(currentDocument); } updateActionStates(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:21:30
|
Revision: 1320 http://japi.svn.sourceforge.net/japi/?rev=1320&view=rev Author: christianhujer Date: 2009-05-23 14:21:22 +0000 (Sat, 23 May 2009) Log Message: ----------- Suppress PMD warnings - the alternative would be code which is more difficult to understand. Modified Paths: -------------- libs/swing-font/trunk/src/prj/net/sf/japi/swing/font/FontChooser.java Modified: libs/swing-font/trunk/src/prj/net/sf/japi/swing/font/FontChooser.java =================================================================== --- libs/swing-font/trunk/src/prj/net/sf/japi/swing/font/FontChooser.java 2009-05-23 14:19:03 UTC (rev 1319) +++ libs/swing-font/trunk/src/prj/net/sf/japi/swing/font/FontChooser.java 2009-05-23 14:21:22 UTC (rev 1320) @@ -166,9 +166,9 @@ /** {@inheritDoc} */ public void valueChanged(@NotNull final ListSelectionEvent e) { final Object source = e.getSource(); - if (source == familyList) { + if (source == familyList) { // NOPMD // No special action except updateFont() - } else if (source == styleList) { + } else if (source == styleList) { // NOPMD // No special action except updateFont() } else if (source == sizeList) { final Object size = sizeList.getSelectedValue(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-23 14:19:11
|
Revision: 1319 http://japi.svn.sourceforge.net/japi/?rev=1319&view=rev Author: christianhujer Date: 2009-05-23 14:19:03 +0000 (Sat, 23 May 2009) Log Message: ----------- Suppress PMD warning - the alternative would be ugly code. Modified Paths: -------------- libs/util/trunk/src/prj/net/sf/japi/util/NotNullIterator.java Modified: libs/util/trunk/src/prj/net/sf/japi/util/NotNullIterator.java =================================================================== --- libs/util/trunk/src/prj/net/sf/japi/util/NotNullIterator.java 2009-05-22 17:45:44 UTC (rev 1318) +++ libs/util/trunk/src/prj/net/sf/japi/util/NotNullIterator.java 2009-05-23 14:19:03 UTC (rev 1319) @@ -47,7 +47,7 @@ /** Prefetches the next element. */ private void prefetchNext() { //noinspection NestedAssignment - while (iterator.hasNext() && (next = iterator.next()) == null) { + while (iterator.hasNext() && (next = iterator.next()) == null) { // NOPMD // nothing to do. } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-22 17:45:53
|
Revision: 1318 http://japi.svn.sourceforge.net/japi/?rev=1318&view=rev Author: christianhujer Date: 2009-05-22 17:45:44 +0000 (Fri, 22 May 2009) Log Message: ----------- Created release tag 0.3.0 for branch 0.3. Added Paths: ----------- libs/swing-action/tags/0.3.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-22 17:40:44
|
Revision: 1317 http://japi.svn.sourceforge.net/japi/?rev=1317&view=rev Author: christianhujer Date: 2009-05-22 17:40:30 +0000 (Fri, 22 May 2009) Log Message: ----------- Created release tag 0.3.0 for branch 0.3. Added Paths: ----------- libs/swing-misc/tags/0.3.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-22 17:40:18
|
Revision: 1316 http://japi.svn.sourceforge.net/japi/?rev=1316&view=rev Author: christianhujer Date: 2009-05-22 17:40:10 +0000 (Fri, 22 May 2009) Log Message: ----------- Remove bogus tag 0.2.1. Removed Paths: ------------- libs/swing-misc/tags/0.2.1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-22 17:38:22
|
Revision: 1315 http://japi.svn.sourceforge.net/japi/?rev=1315&view=rev Author: christianhujer Date: 2009-05-22 17:38:06 +0000 (Fri, 22 May 2009) Log Message: ----------- Created release tag 0.2.1 for branch 0.2. Added Paths: ----------- libs/swing-misc/tags/0.2.1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-22 17:36:45
|
Revision: 1314 http://japi.svn.sourceforge.net/japi/?rev=1314&view=rev Author: christianhujer Date: 2009-05-22 17:36:36 +0000 (Fri, 22 May 2009) Log Message: ----------- Created branch 0.3. Modified Paths: -------------- libs/swing-action/branches/0.3/libs-swing-action.iml Added Paths: ----------- libs/swing-action/branches/0.3/ Property changes on: libs/swing-action/branches/0.3 ___________________________________________________________________ Added: svn:ignore + bin classes dest developer.properties dist docs Added: svn:externals + ^/common/trunk@1312 common Added: svn:mergeinfo + Modified: libs/swing-action/branches/0.3/libs-swing-action.iml =================================================================== --- libs/swing-action/trunk/libs-swing-action.iml 2009-05-22 17:33:48 UTC (rev 1312) +++ libs/swing-action/branches/0.3/libs-swing-action.iml 2009-05-22 17:36:36 UTC (rev 1314) @@ -43,7 +43,7 @@ <option name="lenBefore" value="80" /> <option name="lenAfter" value="80" /> <option name="box" value="false" /> - <option name="filler" value=" " /> + <option name="filler" value="$TEMPLATE$" /> </value> </option> <option name="notice" value="JAPI libs-swing-action is a library for creating and managing javax.swing.Action objects. Copyright (C) &#36;today.year Christian Hujer. 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" /> @@ -64,7 +64,7 @@ <option name="lenBefore" value="80" /> <option name="lenAfter" value="80" /> <option name="box" value="false" /> - <option name="filler" value=" " /> + <option name="filler" value="$TEMPLATE$" /> </value> </option> <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> @@ -85,7 +85,7 @@ <option name="lenBefore" value="80" /> <option name="lenAfter" value="80" /> <option name="box" value="false" /> - <option name="filler" value=" " /> + <option name="filler" value="$TEMPLATE$" /> </value> </option> <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> @@ -106,7 +106,7 @@ <option name="lenBefore" value="80" /> <option name="lenAfter" value="80" /> <option name="box" value="false" /> - <option name="filler" value=" " /> + <option name="filler" value="$TEMPLATE$" /> </value> </option> <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> @@ -127,7 +127,7 @@ <option name="lenBefore" value="80" /> <option name="lenAfter" value="80" /> <option name="box" value="false" /> - <option name="filler" value=" " /> + <option name="filler" value="$TEMPLATE$" /> </value> </option> <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> @@ -148,7 +148,7 @@ <option name="lenBefore" value="80" /> <option name="lenAfter" value="80" /> <option name="box" value="false" /> - <option name="filler" value=" " /> + <option name="filler" value="$TEMPLATE$" /> </value> </option> <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> @@ -169,7 +169,7 @@ <option name="lenBefore" value="80" /> <option name="lenAfter" value="80" /> <option name="box" value="false" /> - <option name="filler" value=" " /> + <option name="filler" value="$TEMPLATE$" /> </value> </option> <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> @@ -190,7 +190,7 @@ <option name="lenBefore" value="80" /> <option name="lenAfter" value="80" /> <option name="box" value="false" /> - <option name="filler" value=" " /> + <option name="filler" value="$TEMPLATE$" /> </value> </option> <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-22 17:36:33
|
Revision: 1313 http://japi.svn.sourceforge.net/japi/?rev=1313&view=rev Author: christianhujer Date: 2009-05-22 17:36:24 +0000 (Fri, 22 May 2009) Log Message: ----------- Created branch 0.3. Added Paths: ----------- libs/swing-misc/branches/0.3/ Property changes on: libs/swing-misc/branches/0.3 ___________________________________________________________________ Added: svn:ignore + bin classes dest developer.properties dist docs Added: svn:externals + ^/common/trunk@1312 common Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-22 17:33:57
|
Revision: 1312 http://japi.svn.sourceforge.net/japi/?rev=1312&view=rev Author: christianhujer Date: 2009-05-22 17:33:48 +0000 (Fri, 22 May 2009) Log Message: ----------- [2795500] JFileChooserButton uses the wrong path for the icon Modified Paths: -------------- libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/action.properties Modified: libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/action.properties =================================================================== --- libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/action.properties 2009-05-22 17:29:51 UTC (rev 1311) +++ libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/action.properties 2009-05-22 17:33:48 UTC (rev 1312) @@ -16,4 +16,4 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # -optionsChooseFile.icon=general/Open16 +optionsChooseFile.icon=toolbarButtonGraphics/general/Open16 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-22 17:30:00
|
Revision: 1311 http://japi.svn.sourceforge.net/japi/?rev=1311&view=rev Author: christianhujer Date: 2009-05-22 17:29:51 +0000 (Fri, 22 May 2009) Log Message: ----------- [2795498] ReflectionAction uses wrong bundle Modified Paths: -------------- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java 2009-05-22 17:28:57 UTC (rev 1310) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java 2009-05-22 17:29:51 UTC (rev 1311) @@ -91,11 +91,15 @@ } @NotNull final ResourceBundle newBundle = getBundle(baseName); addBundle(newBundle); - @Nullable final String additionalBundles = newBundle.getString("ActionBuilder.additionalBundles"); - if (additionalBundles != null) { - for (final String additionalBundle : additionalBundles.split("\\s+")) { - addBundle(additionalBundle); + try { + @Nullable final String additionalBundles = newBundle.getString("ActionBuilder.additionalBundles"); + if (additionalBundles != null) { + for (final String additionalBundle : additionalBundles.split("\\s+")) { + addBundle(additionalBundle); + } } + } catch (final MissingResourceException e) { + /* ignore - it is okay if a bundle specifies no additional bundles. */ } } @@ -177,11 +181,7 @@ * @param key name of ActionBuilder. */ public DefaultActionBuilder(final String key) { - try { - addBundle(key + ".action"); - } catch (final MissingResourceException ignore) { - /* ignore */ - } + addBundle(key + ".action"); } /** Get the ActionMap. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |