japi-cvs Mailing List for JAPI (Page 6)
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-05-11 06:45:15
|
Revision: 1285 http://japi.svn.sourceforge.net/japi/?rev=1285&view=rev Author: christianhujer Date: 2009-05-11 06:45:04 +0000 (Mon, 11 May 2009) Log Message: ----------- Created branch 0.2. Added Paths: ----------- libs/xml/branches/0.2/ Property changes on: libs/xml/branches/0.2 ___________________________________________________________________ Added: svn:ignore + bin classes dest developer.properties dist docs Added: svn:externals + ^/common/trunk@1284 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-09 22:33:38
|
Revision: 1284 http://japi.svn.sourceforge.net/japi/?rev=1284&view=rev Author: christianhujer Date: 2009-05-09 22:33:37 +0000 (Sat, 09 May 2009) Log Message: ----------- Update copyright, author, since. Modified Paths: -------------- libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java Modified: libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java =================================================================== --- libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java 2009-05-09 22:16:25 UTC (rev 1283) +++ libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java 2009-05-09 22:33:37 UTC (rev 1284) @@ -1,5 +1,6 @@ /* * Copyright (C) 2009 Christian Hujer. + * Copyright (C) 2009 Andreas Kirschbaum. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -22,6 +23,7 @@ /** Swing FileFilter implementation that filters files with specified endings. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author Andreas Kirschbaum * @since 0.1 * @todo find a convenient way for i18n/l10n of this class * @todo option to ignore case Modified: libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java =================================================================== --- libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java 2009-05-09 22:16:25 UTC (rev 1283) +++ libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java 2009-05-09 22:33:37 UTC (rev 1284) @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2009 Andreas Kirschbaum. + * + * 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 test.net.sf.japi.util.filter.file; import java.io.File; @@ -7,7 +25,8 @@ import org.junit.Test; /** Test for {@link EndingFileFilter}. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author Andreas Kirschbaum + * @since 0.1 */ public class EndingFileFilterTest { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-09 22:16:31
|
Revision: 1283 http://japi.svn.sourceforge.net/japi/?rev=1283&view=rev Author: christianhujer Date: 2009-05-09 22:16:25 +0000 (Sat, 09 May 2009) Log Message: ----------- Improve documentation. Modified Paths: -------------- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ActionBuilder.java libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/ActionBuilderFactoryTest.java libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/DefaultActionBuilderTest.java libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/ReflectionActionTest.java Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ActionBuilder.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ActionBuilder.java 2009-05-09 22:16:07 UTC (rev 1282) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ActionBuilder.java 2009-05-09 22:16:25 UTC (rev 1283) @@ -47,24 +47,25 @@ * <li>Manage an ActionMap to which created Actions are automatically added</li> * </ul> * You may choose to use one or more ActionBuilders, depending on the size of your application. - * You may use to spread Action configuration information accross one or more ResourceBundles and one or more Preferences, as you wish. - * When looking for values, the Preferences are queried first, in addition order, after that the ResourceBundles, again in addition order, until - * a value was found. The behaviour when no value was found is undefined. + * You may spread Action configuration information accross one or more ResourceBundles and one or more Preferences, as you wish. + * When looking for values, the Preferences are queried first, then the ResourceBundles, until a value was found. + * The Preferences as well as the ResourceBundles are queried in the order in which they've been added. + * The behaviour when no value was found is undefined. * <h3>Usage</h3> * The recommended usage is to * <ol> * <li> * create and initialize an ActionBuilder similar as the following example code, put it somewhere at the start of your program: * <pre> - * ActionBuilder myActionBuilder = ActionBuilder.getActionBuilder("MyApplication"); - * myActionBuilder.addBundle("com.mycompany.mypackage.myresource"); // not always required - * myActionBuilder.addPref(MyClass.class); + * ActionBuilder myActionBuilder = ActionBuilderFactory.getActionBuilder("MyApplication"); + * myActionBuilder.addBundle("com.mycompany.mypackage.myresource"); // Not always required. + * myActionBuilder.addPref(MyClass.class); // Not always required. * </pre> * </li> * <li> * then use the ActionBuilder from anywhere within the application like this: * <pre> - * ActionBuilder myActionBuilder = ActionBuilder.getActionBuilder("MyApplication"); + * ActionBuilder myActionBuilder = ActionBuilderFactory.getActionBuilder("MyApplication"); * Action myAction = myActionBuilder.createAction("load", this); * </pre> * </li> @@ -78,7 +79,7 @@ * <li> * The builder name is used to try to load a resource bundle when a bundle is created. * The builder name is used as package name for the bundle, the bundle name itself is "action". - * Example: When calling <code>ActionBuilder.getActionBuilder("net.sf.japi.swing");</code> for the first time, it is tried to load a + * Example: When calling <code>ActionBuilderFactory.getActionBuilder("net.sf.japi.swing");</code> for the first time, it is tried to load a * {@link ResourceBundle} named <code>net.sf.japi.swing.actions</code> for that <code>ActionBuilder</code>. * This automatism has been implemented to save you from the need of initializing an ActionBuilder before use. * </li> @@ -132,6 +133,7 @@ * @see Action * @see Preferences * @see ResourceBundle + * @see ActionBuilderFactory * @todo think about toolbar interaction * @todo think about toolbar configuration * @todo whether a dialog is a onetime dialog should be a property and user configurable Modified: libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/ActionBuilderFactoryTest.java =================================================================== --- libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/ActionBuilderFactoryTest.java 2009-05-09 22:16:07 UTC (rev 1282) +++ libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/ActionBuilderFactoryTest.java 2009-05-09 22:16:25 UTC (rev 1283) @@ -26,6 +26,7 @@ /** Test for {@link ActionBuilderFactory}. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class ActionBuilderFactoryTest { Modified: libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/DefaultActionBuilderTest.java =================================================================== --- libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/DefaultActionBuilderTest.java 2009-05-09 22:16:07 UTC (rev 1282) +++ libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/DefaultActionBuilderTest.java 2009-05-09 22:16:25 UTC (rev 1283) @@ -27,10 +27,9 @@ import org.junit.Assert; import org.junit.Test; -/** - * Test for {@link DefaultActionBuilder}. - * +/** Test for {@link DefaultActionBuilder}. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class DefaultActionBuilderTest { Modified: libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/ReflectionActionTest.java =================================================================== --- libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/ReflectionActionTest.java 2009-05-09 22:16:07 UTC (rev 1282) +++ libs/swing-action/trunk/src/tst/test/net/sf/japi/swing/ReflectionActionTest.java 2009-05-09 22:16:25 UTC (rev 1283) @@ -29,10 +29,9 @@ import org.junit.Before; import org.junit.Test; -/** - * Test for {@link ReflectionAction}. - * +/** Test for {@link ReflectionAction}. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class ReflectionActionTest { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-09 22:16:08
|
Revision: 1282 http://japi.svn.sourceforge.net/japi/?rev=1282&view=rev Author: christianhujer Date: 2009-05-09 22:16:07 +0000 (Sat, 09 May 2009) Log Message: ----------- Deprecate ComponentFactory until it's mature. Modified Paths: -------------- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ComponentFactory.java Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ComponentFactory.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ComponentFactory.java 2009-05-09 22:14:56 UTC (rev 1281) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ComponentFactory.java 2009-05-09 22:16:07 UTC (rev 1282) @@ -26,6 +26,8 @@ /** The ComponentFactory provides some convenience methods for creating Swing Components. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @since 0.1 + * @deprecated This class is experimental. + * If you use it, you MUST be aware of the fact that its interface and its package are subject of change. * @todo Since this doesn't require an ActionBuilder, this should be in a different library / package. */ public final class ComponentFactory { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-09 22:14:57
|
Revision: 1281 http://japi.svn.sourceforge.net/japi/?rev=1281&view=rev Author: christianhujer Date: 2009-05-09 22:14:56 +0000 (Sat, 09 May 2009) Log Message: ----------- Add @since information. Modified Paths: -------------- libs/swing-about/trunk/src/tst/test/net/sf/japi/swing/about/AboutDialogTest.java Modified: libs/swing-about/trunk/src/tst/test/net/sf/japi/swing/about/AboutDialogTest.java =================================================================== --- libs/swing-about/trunk/src/tst/test/net/sf/japi/swing/about/AboutDialogTest.java 2009-05-09 22:14:21 UTC (rev 1280) +++ libs/swing-about/trunk/src/tst/test/net/sf/japi/swing/about/AboutDialogTest.java 2009-05-09 22:14:56 UTC (rev 1281) @@ -30,6 +30,7 @@ /** * Unit test for {@link AboutDialog}. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class AboutDialogTest { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-09 22:14:28
|
Revision: 1280 http://japi.svn.sourceforge.net/japi/?rev=1280&view=rev Author: christianhujer Date: 2009-05-09 22:14:21 +0000 (Sat, 09 May 2009) Log Message: ----------- Documentation improvements. Modified Paths: -------------- libs/argparser/trunk/src/prj/net/sf/japi/io/args/MethodOptionComparator.java libs/argparser/trunk/src/prj/net/sf/japi/io/args/Option.java libs/argparser/trunk/src/prj/net/sf/japi/io/args/TokenReader.java Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/MethodOptionComparator.java =================================================================== --- libs/argparser/trunk/src/prj/net/sf/japi/io/args/MethodOptionComparator.java 2009-05-09 22:13:29 UTC (rev 1279) +++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/MethodOptionComparator.java 2009-05-09 22:14:21 UTC (rev 1280) @@ -24,7 +24,7 @@ import java.util.Comparator; import org.jetbrains.annotations.NotNull; -/** Compares methods by their options. +/** Compares methods by their {@link Option}s. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @since 0.2 */ Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/Option.java =================================================================== --- libs/argparser/trunk/src/prj/net/sf/japi/io/args/Option.java 2009-05-09 22:13:29 UTC (rev 1279) +++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/Option.java 2009-05-09 22:14:21 UTC (rev 1280) @@ -61,6 +61,7 @@ * Default is <code>""</code> (empty String) which is interpreted as the associated method's name being the key. * @return option key */ + // Cannot be null instead of "" because null is not interpreted as a constant here. String key() default ""; } // @interface Option Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/TokenReader.java =================================================================== --- libs/argparser/trunk/src/prj/net/sf/japi/io/args/TokenReader.java 2009-05-09 22:13:29 UTC (rev 1279) +++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/TokenReader.java 2009-05-09 22:14:21 UTC (rev 1280) @@ -183,7 +183,7 @@ /** String Escape - \ inside "". */ STRING_ESCAPE, - /** Secape - after \ but outside "". */ + /** Escape - after \ but outside "". */ ESCAPE, /** String - inside ''. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-09 22:13:34
|
Revision: 1279 http://japi.svn.sourceforge.net/japi/?rev=1279&view=rev Author: christianhujer Date: 2009-05-09 22:13:29 +0000 (Sat, 09 May 2009) Log Message: ----------- Add Ragnor to the list of people to ask. Modified Paths: -------------- site/trunk/src/doc/start.xhtml Modified: site/trunk/src/doc/start.xhtml =================================================================== --- site/trunk/src/doc/start.xhtml 2009-05-09 18:30:43 UTC (rev 1278) +++ site/trunk/src/doc/start.xhtml 2009-05-09 22:13:29 UTC (rev 1279) @@ -69,7 +69,7 @@ You may visit the <a href="http://sourceforge.net/projects/japi">JAPI Project Page at SourceForge</a> or send mail to <a href="mailto:ch...@ri...">ch...@ri...</a>. </li> <li> - You may as well join <a href="irc://irc.freenode.net:6667/%23japi">IRC Channel <code>#japi</code> at <code>irc.freenode.net</code></a> and look for Cher(istheus), z0ra or Zergus. + You may as well join <a href="irc://irc.freenode.net:6667/%23japi">IRC Channel <code>#japi</code> at <code>irc.freenode.net</code></a> and look for Cher(istheus), Ragnor, z0ra or Zergus. Currently <a href="http://gridarta.sourceforge.net/">Gridarta</a>, the map editor of the MMORPGs <a href="http://crossfire.real-time.com/">Crossfire</a> and <a href="http://www.daimonin.net/">Daimonin</a> is JAPI's main application. </li> </ul> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-09 18:30:50
|
Revision: 1278 http://japi.svn.sourceforge.net/japi/?rev=1278&view=rev Author: christianhujer Date: 2009-05-09 18:30:43 +0000 (Sat, 09 May 2009) Log Message: ----------- Added collect method to Collections2. Modified Paths: -------------- libs/util/trunk/src/prj/net/sf/japi/util/Collections2.java Added Paths: ----------- libs/util/trunk/src/tst/test/net/sf/japi/util/Collections2Test.java Modified: libs/util/trunk/src/prj/net/sf/japi/util/Collections2.java =================================================================== --- libs/util/trunk/src/prj/net/sf/japi/util/Collections2.java 2009-05-09 18:30:43 UTC (rev 1277) +++ libs/util/trunk/src/prj/net/sf/japi/util/Collections2.java 2009-05-09 18:30:43 UTC (rev 1278) @@ -180,4 +180,16 @@ } } + /** Collects items from an Iterator into a Collection. + * @param c Collection to which the items shall be collected. + * @param iterator Iterator from which to collect items. + * @return <var>c</var> after the items from <var>iterator</var> have been added to it. + */ + public static <T, C extends Collection<T>> C collect(final C c, final Iterator<T> iterator) { + while (iterator.hasNext()) { + c.add(iterator.next()); + } + return c; + } + } // class Collections2 Added: libs/util/trunk/src/tst/test/net/sf/japi/util/Collections2Test.java =================================================================== --- libs/util/trunk/src/tst/test/net/sf/japi/util/Collections2Test.java (rev 0) +++ libs/util/trunk/src/tst/test/net/sf/japi/util/Collections2Test.java 2009-05-09 18:30:43 UTC (rev 1278) @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2009 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 + */ + +package test.net.sf.japi.util; + +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +import net.sf.japi.util.Collections2; +import org.junit.Assert; +import org.junit.Test; + +/** Test for {@link Collections2}. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class Collections2Test { + + /** Test case for {@link Collections2#collect(Collection, Iterator)}. */ + @Test + public void testCollect() { + final Set<String> original = Collections.unmodifiableSet(new HashSet<String>(Arrays.asList("foo", "bar"))); + final Set<String> collected = Collections2.collect(new HashSet<String>(), original.iterator()); + Assert.assertEquals("Collect must collect all elements.", original, collected); + } + +} Property changes on: libs/util/trunk/src/tst/test/net/sf/japi/util/Collections2Test.java ___________________________________________________________________ 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-09 18:30:50
|
Revision: 1277 http://japi.svn.sourceforge.net/japi/?rev=1277&view=rev Author: christianhujer Date: 2009-05-09 18:30:43 +0000 (Sat, 09 May 2009) Log Message: ----------- Added SimpleNamespaceContext. Added Paths: ----------- libs/xml/trunk/src/prj/net/sf/japi/xml/SimpleNamespaceContext.java libs/xml/trunk/src/tst/test/net/sf/japi/xml/SimpleNamespaceContextTest.java Added: libs/xml/trunk/src/prj/net/sf/japi/xml/SimpleNamespaceContext.java =================================================================== --- libs/xml/trunk/src/prj/net/sf/japi/xml/SimpleNamespaceContext.java (rev 0) +++ libs/xml/trunk/src/prj/net/sf/japi/xml/SimpleNamespaceContext.java 2009-05-09 18:30:43 UTC (rev 1277) @@ -0,0 +1,152 @@ +/* + * Copyright (C) 2009 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 + */ +package net.sf.japi.xml; + +import org.jetbrains.annotations.NotNull; + +import javax.xml.namespace.NamespaceContext; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +/** Configurable namespace context. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class SimpleNamespaceContext implements NamespaceContext { + + /** Default prefix to namespace mapping. */ + private static final Map<String, String> DEFAULT_PREFIX_TO_NAMESPACE; + + /** Default namespace to prefix mapping. */ + private static final Map<String, List<String>> DEFAULT_NAMESPACE_TO_PREFIX; + + /** Prefix to namespace mapping (unique). */ + private final Map<String, String> prefixToNamespace = new HashMap<String, String>(); + + /** Namespace to prefix mapping (not unique). */ + private final Map<String, List<String>> namespaceToPrefix = new HashMap<String, List<String>>(); + + static { + // Create the default mappings which are always required. + final Map<String, String> defaultPrefixToNamespace = new HashMap<String, String>(); + final Map<String, List<String>> defaultNamespaceToPrefix = new HashMap<String, List<String>>(); + mapImpl(defaultPrefixToNamespace, defaultNamespaceToPrefix, "", ""); + mapImpl(defaultPrefixToNamespace, defaultNamespaceToPrefix, "xml", "http://www.w3.org/XML/1998/namespace"); + mapImpl(defaultPrefixToNamespace, defaultNamespaceToPrefix, "xmlns", "http://www.w3.org/2000/xmlns/"); + for (final Map.Entry<String, List<String>> entry : defaultNamespaceToPrefix.entrySet()) { + entry.setValue(Collections.unmodifiableList(entry.getValue())); + } + DEFAULT_NAMESPACE_TO_PREFIX = Collections.unmodifiableMap(defaultNamespaceToPrefix); + DEFAULT_PREFIX_TO_NAMESPACE = Collections.unmodifiableMap((defaultPrefixToNamespace)); + } + + { + // Copy the default mappings which are always required. + prefixToNamespace.putAll(DEFAULT_PREFIX_TO_NAMESPACE); + namespaceToPrefix.putAll(DEFAULT_NAMESPACE_TO_PREFIX); + // The mappings stay unmodifiable except the default namespace / prefix "". + namespaceToPrefix.put("", new ArrayList<String>(namespaceToPrefix.get(""))); + } + + /** Create a simple Namespace context. + * @param mapping Strings which are pairs of prefix and namespace. + */ + public SimpleNamespaceContext(@NotNull final String... mapping) { + for (int i = 0; i < mapping.length; i += 2) { + map(mapping[i], mapping[i + 1]); + } + } + + /** Adds a new mapping to this namespace context. + * @param prefix Prefix to map. any previous mapping of <var>prefix</var> will be replaced. + * @param namespaceURI Namespace to map. Any previous mapping of namespaceURI will be extended. + */ + public void map(@NotNull final String prefix, @NotNull final String namespaceURI) { + map(prefixToNamespace, namespaceToPrefix, prefix, namespaceURI); + } + + /** Adds a new mapping to this namespace context. + * @param prefixToNamespace Prefix to namespace mapping to extend. + * @param namespaceToPrefix Namespace to prefix mapping to extend. + * @param prefix Prefix to map. any previous mapping of <var>prefix</var> will be replaced. + * @param namespaceURI Namespace to map. Any previous mapping of namespaceURI will be extended. + */ + private static void map(@NotNull final Map<String, String> prefixToNamespace, @NotNull final Map<String, List<String>> namespaceToPrefix, @NotNull final String prefix, @NotNull final String namespaceURI) { + if (!"".equals(prefix) && DEFAULT_PREFIX_TO_NAMESPACE.containsKey(prefix)) { + if (DEFAULT_PREFIX_TO_NAMESPACE.get(prefix).equals(namespaceURI)) { + return; + } + throw new IllegalArgumentException("Prefix " + prefix + " is fixed to namespace " + DEFAULT_PREFIX_TO_NAMESPACE.get(prefix) + " and MUST NOT be remapped."); + } + if (!"".equals(namespaceURI) && DEFAULT_NAMESPACE_TO_PREFIX.containsKey(namespaceURI)) { + if (DEFAULT_NAMESPACE_TO_PREFIX.get(namespaceURI).get(0).equals(prefix)) { + return; + } + throw new IllegalArgumentException("Namespace " + namespaceURI + " is fixed to prefix " + DEFAULT_NAMESPACE_TO_PREFIX.get(prefix).get(0) + " and MUST NOT be remapped."); + } + mapImpl(prefixToNamespace, namespaceToPrefix, prefix, namespaceURI); + } + + /** Adds a new mapping to this namespace context. + * @param prefixToNamespace Prefix to namespace mapping to extend. + * @param namespaceToPrefix Namespace to prefix mapping to extend. + * @param prefix Prefix to map. any previous mapping of <var>prefix</var> will be replaced. + * @param namespaceURI Namespace to map. Any previous mapping of namespaceURI will be extended. + */ + private static void mapImpl(@NotNull final Map<String, String> prefixToNamespace, @NotNull final Map<String, List<String>> namespaceToPrefix, @NotNull final String prefix, @NotNull final String namespaceURI) { + if (prefixToNamespace.containsKey(prefix)) { + namespaceToPrefix.get(prefixToNamespace.get(prefix)).remove(prefix); + } + prefixToNamespace.put(prefix, namespaceURI); + if (!namespaceToPrefix.containsKey(namespaceURI)) { + namespaceToPrefix.put(namespaceURI, new ArrayList<String>()); + } + namespaceToPrefix.get(namespaceURI).add(prefix); + } + + /** {@inheritDoc} */ + public String getNamespaceURI(@NotNull final String prefix) { + if (prefix == null) { + throw new IllegalArgumentException("Namespace prefix MUST NOT be null."); + } + final String namespaceURI = prefixToNamespace.get(prefix); + return namespaceURI != null ? namespaceURI : ""; + } + + /** {@inheritDoc} */ + public String getPrefix(@NotNull final String namespaceURI) { + if (namespaceURI == null) { + throw new IllegalArgumentException("Namespace prefix MUST NOT be null."); + } + final List<String> namespaces = namespaceToPrefix.get(namespaceURI); + assert namespaces == null || namespaces.size() > 0; + return namespaces == null ? null : namespaces.get(0); + } + + /** {@inheritDoc} */ + public Iterator getPrefixes(@NotNull final String namespaceURI) { + if (namespaceURI == null) { + throw new IllegalArgumentException("Namespace prefix MUST NOT be null."); + } + final List<String> namespaces = namespaceToPrefix.get(namespaceURI); + return (namespaces == null ? Collections.EMPTY_SET : Collections.unmodifiableCollection(namespaces)).iterator(); + } +} Property changes on: libs/xml/trunk/src/prj/net/sf/japi/xml/SimpleNamespaceContext.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Added: libs/xml/trunk/src/tst/test/net/sf/japi/xml/SimpleNamespaceContextTest.java =================================================================== --- libs/xml/trunk/src/tst/test/net/sf/japi/xml/SimpleNamespaceContextTest.java (rev 0) +++ libs/xml/trunk/src/tst/test/net/sf/japi/xml/SimpleNamespaceContextTest.java 2009-05-09 18:30:43 UTC (rev 1277) @@ -0,0 +1,182 @@ +/* + * Copyright (C) 2009 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 + */ + +package test.net.sf.japi.xml; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Set; +import net.sf.japi.xml.SimpleNamespaceContext; +import org.junit.Test; +import org.junit.Assert; + +/** UnitTest for {@link SimpleNamespaceContext}. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class SimpleNamespaceContextTest { + + /** Tests that {@link SimpleNamespaceContext#getNamespaceURI(String)} returns correct defaults. + * @see javax.xml.namespace.NamespaceContext#getNamespaceURI(String) + */ + @Test public void testDefaultGetNamespaceURI() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + Assert.assertEquals("The empty prefix \"\" must be initially mapped to the default namespace \"\".", "", testling.getNamespaceURI("")); + Assert.assertEquals("The prefix \"xml\" must be mapped to the namespace \"http://www.w3.org/XML/1998/namespace\".", "http://www.w3.org/XML/1998/namespace", testling.getNamespaceURI("xml")); + Assert.assertEquals("The prefix \"xmlns\" must be mapped to the namespace \"http://www.w3.org/2000/xmlns/\".", "http://www.w3.org/2000/xmlns/", testling.getNamespaceURI("xmlns")); + } + + /** Tests that {@link SimpleNamespaceContext#getNamespaceURI(String)} with null throws IllegalArgumentException. + * @see javax.xml.namespace.NamespaceContext#getNamespaceURI(String) + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testDefaultGetNamespaceURINull() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + testling.getNamespaceURI(null); + } + + /** Tests that {@link net.sf.japi.xml.SimpleNamespaceContext#getPrefix(String)} returns correct defaults. + * @see javax.xml.namespace.NamespaceContext#getPrefix(String) + */ + @Test public void testDefaultGetPrefix() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + Assert.assertEquals("The default namespace \"\" must be initially mapped to the empty prefix \"\".", "", testling.getPrefix("")); + Assert.assertEquals("The namespace \"http://www.w3.org/XML/1998/namespace\" must be mapped to the prefix \"xml\".", "xml", testling.getPrefix("http://www.w3.org/XML/1998/namespace")); + Assert.assertEquals("The namespace \"http://www.w3.org/2000/xmlns/\" must be mapped to the prefix \"xmlns\".", "xmlns", testling.getPrefix("http://www.w3.org/2000/xmlns/")); + } + + /** Tests that {@link SimpleNamespaceContext#getPrefix(String)} with null throws IllegalArgumentException. + * @see javax.xml.namespace.NamespaceContext#getPrefix(String) + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testDefaultGetPrefixNull() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + testling.getPrefix(null); + } + + /** Tests that legal remappings of the default namespaces are accepted. */ + @Test public void testLegalRemap() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + testling.map("xml", "http://www.w3.org/XML/1998/namespace"); + testling.map("xmlns", "http://www.w3.org/2000/xmlns/"); + } + + /** Tests that illegally remapping the prefix "xml" is not possible. + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testRemapXmlPrefixImpossible() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + testling.map("xml", ""); + } + + /** Tests that illegally remapping the prefix "xmlns" is not possible. + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testRemapXmlnsPrefixImpossible() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + testling.map("xmlns", ""); + } + + /** Tests that illegally remapping the namespace of "xml" is not possible. + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testRemapXmlNamespaceImpossible() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + testling.map("", "http://www.w3.org/XML/1998/namespace"); + } + + /** Tests that illegally remapping the namespace of "xmlns" is not possible. + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testRemapXmlnsNamespaceImpossible() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + testling.map("", "http://www.w3.org/2000/xmlns/"); + } + + /** Tests that illegally mapping the prefix "xml" is not possible. + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testMapXmlPrefixImpossible() { + new SimpleNamespaceContext("xml", ""); + } + + /** Tests that illegally mapping the prefix "xmlns" is not possible. + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testMapXmlnsPrefixImpossible() { + new SimpleNamespaceContext("xmlns", ""); + } + + /** Tests that illegally mapping the namespace of "xml" is not possible. + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testMapXmlNamespaceImpossible() { + new SimpleNamespaceContext("", "http://www.w3.org/XML/1998/namespace"); + } + + /** Tests that illegally mapping the namespace of "xmlns" is not possible. + * @throws IllegalArgumentException (expected). + */ + @Test(expected = IllegalArgumentException.class) + public void testMapXmlnsNamespaceImpossible() { + new SimpleNamespaceContext("", "http://www.w3.org/2000/xmlns/"); + } + + + /** Tests that mapping a new prefix works. */ + @Test + public void testSimpleMap() { + final SimpleNamespaceContext testling = new SimpleNamespaceContext(); + + testling.map("", "http://www.w3.org/1999/xhtml"); + testling.map("html", "http://www.w3.org/1999/xhtml"); + + final Set<String> expectedPrefixes = Collections.unmodifiableSet(new HashSet<String>(Arrays.asList("", "html"))); + + Assert.assertEquals("http://www.w3.org/1999/xhtml", testling.getNamespaceURI("")); + Assert.assertEquals("http://www.w3.org/1999/xhtml", testling.getNamespaceURI("html")); + + Assert.assertTrue(expectedPrefixes.contains(testling.getPrefix("http://www.w3.org/1999/xhtml"))); + + Assert.assertEquals(expectedPrefixes, collect(new HashSet<String>(), testling.getPrefixes("http://www.w3.org/1999/xhtml"))); + } + + /** Collects items from an Iterator into a Collection. + * @param c Collection to which the items shall be collected. + * @param iterator Iterator from which to collect items. + * @return <var>c</var> after the items from <var>iterator</var> have been added to it. + */ + private static <T, C extends Collection<T>> C collect(final C c, final Iterator<T> iterator) { + while (iterator.hasNext()) { + c.add(iterator.next()); + } + return c; + } + +} Property changes on: libs/xml/trunk/src/tst/test/net/sf/japi/xml/SimpleNamespaceContextTest.java ___________________________________________________________________ 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-09 10:55:22
|
Revision: 1276 http://japi.svn.sourceforge.net/japi/?rev=1276&view=rev Author: christianhujer Date: 2009-05-09 10:55:09 +0000 (Sat, 09 May 2009) Log Message: ----------- Remove empty util test package. Removed Paths: ------------- libs/xml/trunk/src/tst/test/net/sf/japi/util/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-08 00:42:04
|
Revision: 1275 http://japi.svn.sourceforge.net/japi/?rev=1275&view=rev Author: christianhujer Date: 2009-05-08 00:41:55 +0000 (Fri, 08 May 2009) Log Message: ----------- Improve error handling. Modified Paths: -------------- imajar/trunk/bin/insjar.sh Modified: imajar/trunk/bin/insjar.sh =================================================================== --- imajar/trunk/bin/insjar.sh 2009-05-08 00:41:30 UTC (rev 1274) +++ imajar/trunk/bin/insjar.sh 2009-05-08 00:41:55 UTC (rev 1275) @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (C) 2009 Christian Hujer. # @@ -17,8 +17,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA function usage { - cat <<END -Usage: imajar.sh [OPTION]... JARNAME LINKNAME + cat 1>&2 <<END +Usage: $0 [OPTION]... JARNAME LINKNAME Installs a jar as "executable program". JARNAME: Path to the jar file that shall be copied. @@ -26,33 +26,35 @@ Options: -h Display this help information - -This program normally is not run by a user or admin directly. END }; -while getopts ":h" option +while getopts "h" option do case $option in h) usage + exit 0 ;; \?) usage exit 1 ;; - *) - usage - exit 1 - ;; esac done + +if [ $# != 2 ] +then + echo 1>&2 $0: Wrong number of arguments. + usage + exit 1 +fi exit mkdir -p $HOME/bin/jars/ cp "$1" $HOME/bin/jars/ rm -f "$HOME/bin/jars/$2.jar" -ln -s "$HOME/bin/jars/$1" "$HOME/bin/jars/$2.jar" +ln -s "$HOME/bin/jars/$(basename $1)" "$HOME/bin/jars/$2.jar" rm -f "$HOME/bin/$2" ln -s "$HOME/bin/imajar.sh" "$HOME/bin/$2" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-05-08 00:41:48
|
Revision: 1274 http://japi.svn.sourceforge.net/japi/?rev=1274&view=rev Author: christianhujer Date: 2009-05-08 00:41:30 +0000 (Fri, 08 May 2009) Log Message: ----------- Run on cygwin. Modified Paths: -------------- imajar/trunk/bin/imajar.sh Modified: imajar/trunk/bin/imajar.sh =================================================================== --- imajar/trunk/bin/imajar.sh 2009-04-04 19:29:27 UTC (rev 1273) +++ imajar/trunk/bin/imajar.sh 2009-05-08 00:41:30 UTC (rev 1274) @@ -22,5 +22,11 @@ USERJARS=~/bin/jars/ JARNAME=$(basename $0) -#java -client -Xshare:on -jar "$USERJARS/$JARNAME.jar" "$@" -java -jar "$USERJARS/$JARNAME.jar" "$@" +JARPATH="$USERJARS/$JARNAME.jar" + +case "$(uname)" in + CYGWIN*) JARPATH=$(cygpath --windows "$JARPATH") ;; +esac + +#java -client -Xshare:on -jar "$JARPATH" "$@" +java -jar "$JARPATH" "$@" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2009-04-04 19:29:29
|
Revision: 1273 http://japi.svn.sourceforge.net/japi/?rev=1273&view=rev Author: akirschbaum Date: 2009-04-04 19:29:27 +0000 (Sat, 04 Apr 2009) Log Message: ----------- Whitespace changes. Modified Paths: -------------- libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java Modified: libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java =================================================================== --- libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java 2009-04-04 19:26:46 UTC (rev 1272) +++ libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java 2009-04-04 19:29:27 UTC (rev 1273) @@ -15,8 +15,8 @@ @Test public void testAccept() { final File file1 = new File("test.abc"); - checkFileFilter(new boolean[] {true,false,true,false,}, file1, ".abc", ".def", ".ghi"); - checkFileFilter(new boolean[] {false,true,false,true,}, file1, ".def", ".ghi"); + checkFileFilter(new boolean[] { true, false, true, false, }, file1, ".abc", ".def", ".ghi"); + checkFileFilter(new boolean[] { false, true, false, true, }, file1, ".def", ".ghi"); final File dir1 = new File("test.abc") { /** The serial version UID. */ @@ -28,8 +28,8 @@ return true; } }; - checkFileFilter(new boolean[] {false,false,true,true,}, dir1, ".abc", ".def", ".ghi"); - checkFileFilter(new boolean[] {false,false,true,true,}, dir1, ".def", ".ghi"); + checkFileFilter(new boolean[] { false, false, true, true, }, dir1, ".abc", ".def", ".ghi"); + checkFileFilter(new boolean[] { false, false, true, true, }, dir1, ".def", ".ghi"); } /** Checks that {@link EndingFileFilter#accept(File)} returns the expected result. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2009-04-04 19:26:49
|
Revision: 1272 http://japi.svn.sourceforge.net/japi/?rev=1272&view=rev Author: akirschbaum Date: 2009-04-04 19:26:46 +0000 (Sat, 04 Apr 2009) Log Message: ----------- Simplify code. Modified Paths: -------------- libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java Modified: libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java =================================================================== --- libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java 2009-04-04 19:20:27 UTC (rev 1271) +++ libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java 2009-04-04 19:26:46 UTC (rev 1272) @@ -73,25 +73,16 @@ /** {@inheritDoc} */ @Override public boolean accept(final File pathname) { + if (pathname.isDirectory()) { + return acceptDirectories; + } final String fileName = pathname.getName(); - boolean ret; - if (negate) { - ret = true; - for (final String ending : endings) { - ret &= !fileName.endsWith(ending); + for (final String ending : endings) { + if (fileName.endsWith(ending)) { + return !negate; } - } else { - ret = false; - for (final String ending : endings) { - ret |= fileName.endsWith(ending); - } } - if (acceptDirectories) { - ret |= pathname.isDirectory(); - } else { - ret &= !pathname.isDirectory(); - } - return ret; + return negate; } } // class DFileFilter This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2009-04-04 19:20:30
|
Revision: 1271 http://japi.svn.sourceforge.net/japi/?rev=1271&view=rev Author: akirschbaum Date: 2009-04-04 19:20:27 +0000 (Sat, 04 Apr 2009) Log Message: ----------- Fix EndingFileFilter. Modified Paths: -------------- libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java Added Paths: ----------- libs/util/trunk/src/tst/test/net/sf/japi/util/filter/ libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/ libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java Modified: libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java =================================================================== --- libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java 2009-03-22 13:46:23 UTC (rev 1270) +++ libs/util/trunk/src/prj/net/sf/japi/util/filter/file/EndingFileFilter.java 2009-04-04 19:20:27 UTC (rev 1271) @@ -86,7 +86,6 @@ ret |= fileName.endsWith(ending); } } - ret = acceptDirectories ? pathname.isDirectory() : !pathname.isDirectory(); if (acceptDirectories) { ret |= pathname.isDirectory(); } else { Added: libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java =================================================================== --- libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java (rev 0) +++ libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java 2009-04-04 19:20:27 UTC (rev 1271) @@ -0,0 +1,60 @@ +package test.net.sf.japi.util.filter.file; + +import java.io.File; +import java.io.FileFilter; +import net.sf.japi.util.filter.file.EndingFileFilter; +import org.junit.Assert; +import org.junit.Test; + +/** Test for {@link EndingFileFilter}. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class EndingFileFilterTest { + + /** Test case for {@link EndingFileFilter#accept(File)}. */ + @Test + public void testAccept() { + final File file1 = new File("test.abc"); + checkFileFilter(new boolean[] {true,false,true,false,}, file1, ".abc", ".def", ".ghi"); + checkFileFilter(new boolean[] {false,true,false,true,}, file1, ".def", ".ghi"); + + final File dir1 = new File("test.abc") { + /** The serial version UID. */ + private static final long serialVersionUID = 1; + + /** {@inheritDoc} */ + @Override + public boolean isDirectory() { + return true; + } + }; + checkFileFilter(new boolean[] {false,false,true,true,}, dir1, ".abc", ".def", ".ghi"); + checkFileFilter(new boolean[] {false,false,true,true,}, dir1, ".def", ".ghi"); + } + + /** Checks that {@link EndingFileFilter#accept(File)} returns the expected result. + * @param expectedResults the expected results from accept(File) + * @param file the file to pass to accept(File) + * @param endings parameter for EndingFileFilter constructor + */ + private static void checkFileFilter(final boolean[] expectedResults, final File file, final String... endings) { + Assert.assertEquals(4, expectedResults.length); + checkFileFilter(false, false, expectedResults[0], file, endings); + checkFileFilter(false, true, expectedResults[1], file, endings); + checkFileFilter(true, false, expectedResults[2], file, endings); + checkFileFilter(true, true, expectedResults[3], file, endings); + } + + /** Checks that {@link EndingFileFilter#accept(File)} returns the expected result. + * @param acceptDirectories parameter for EndingFileFilter constructor + * @param negate parameter for EndingFileFilter constructor + * @param expectedResult the expected result of accept(File) + * @param file the file to pass to accept(File) + * @param endings parameter for EndingFileFilter constructor + */ + private static void checkFileFilter(final boolean acceptDirectories, final boolean negate, final boolean expectedResult, final File file, final String... endings) { + final FileFilter fileFilter = new EndingFileFilter(acceptDirectories, negate, "description", endings); + Assert.assertEquals(expectedResult, fileFilter.accept(file)); + } + +} // class EndingFileFilterTest Property changes on: libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/EndingFileFilterTest.java ___________________________________________________________________ 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-03-22 13:46:40
|
Revision: 1270 http://japi.svn.sourceforge.net/japi/?rev=1270&view=rev Author: christianhujer Date: 2009-03-22 13:46:23 +0000 (Sun, 22 Mar 2009) Log Message: ----------- Added missing function documentation to the EcmaScript examples. Modified Paths: -------------- tools/scriptInterpreter/trunk/action.js tools/scriptInterpreter/trunk/test.js Modified: tools/scriptInterpreter/trunk/action.js =================================================================== --- tools/scriptInterpreter/trunk/action.js 2009-03-11 18:00:39 UTC (rev 1269) +++ tools/scriptInterpreter/trunk/action.js 2009-03-22 13:46:23 UTC (rev 1270) @@ -15,14 +15,25 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/** This is a simple test case for accessing AWT / Swing from the script interpreter. + */ + +/** ActionListener that prints a message. + * @param e ActionEvent. + */ function aa(e) { print("Test.\n"); } + +/** WindowListener that closes the window. + * @param e WindowEvent. + */ function wl1(e) { if (e.ID == java.awt.event.WindowEvent.WINDOW_CLOSING) { e.source.dispose(); } } + frame = new javax.swing.JFrame("Test"); button = new javax.swing.JButton("Click"); button.addActionListener(aa); Modified: tools/scriptInterpreter/trunk/test.js =================================================================== --- tools/scriptInterpreter/trunk/test.js 2009-03-11 18:00:39 UTC (rev 1269) +++ tools/scriptInterpreter/trunk/test.js 2009-03-22 13:46:23 UTC (rev 1270) @@ -15,9 +15,13 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/** Prints a message. + * @param i Number to print in that message. + */ function foo(i) { print("hello, world " + i + "\n"); } + for (i = 0; i < 10; i++) { foo(i); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-11 18:01:07
|
Revision: 1269 http://japi.svn.sourceforge.net/japi/?rev=1269&view=rev Author: christianhujer Date: 2009-03-11 18:00:39 +0000 (Wed, 11 Mar 2009) Log Message: ----------- Made historic compile and test in IntelliJ IDEA. Modified Paths: -------------- historic/trunk/historic.iml Modified: historic/trunk/historic.iml =================================================================== --- historic/trunk/historic.iml 2009-03-02 01:39:53 UTC (rev 1268) +++ historic/trunk/historic.iml 2009-03-11 18:00:39 UTC (rev 1269) @@ -31,6 +31,15 @@ <SOURCES /> </library> </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/lib/junit.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> </component> <component name="copyright"> <Base> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 02:22:26
|
Revision: 1263 http://japi.svn.sourceforge.net/japi/?rev=1263&view=rev Author: christianhujer Date: 2009-03-02 01:35:58 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- tools/scriptEngineLister/trunk/src/prj/net/sf/japi/tools/sel/ScriptEngineLister.java Modified: tools/scriptEngineLister/trunk/src/prj/net/sf/japi/tools/sel/ScriptEngineLister.java =================================================================== --- tools/scriptEngineLister/trunk/src/prj/net/sf/japi/tools/sel/ScriptEngineLister.java 2009-03-02 01:35:48 UTC (rev 1262) +++ tools/scriptEngineLister/trunk/src/prj/net/sf/japi/tools/sel/ScriptEngineLister.java 2009-03-02 01:35:58 UTC (rev 1263) @@ -29,6 +29,7 @@ /** Program for listing available script engines. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class ScriptEngineLister extends BasicCommand { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 02:22:25
|
Revision: 1242 http://japi.svn.sourceforge.net/japi/?rev=1242&view=rev Author: christianhujer Date: 2009-03-02 01:30:33 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/HexEditPane.java progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/JHexEditApplication.java Modified: progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/HexEditPane.java =================================================================== --- progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/HexEditPane.java 2009-03-02 01:30:21 UTC (rev 1241) +++ progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/HexEditPane.java 2009-03-02 01:30:33 UTC (rev 1242) @@ -25,6 +25,7 @@ /** Component for hex viewing. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class HexEditPane extends JPanel { Modified: progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/JHexEditApplication.java =================================================================== --- progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/JHexEditApplication.java 2009-03-02 01:30:21 UTC (rev 1241) +++ progs/jhexedit/trunk/src/prj/net/sf/japi/progs/jhexedit/JHexEditApplication.java 2009-03-02 01:30:33 UTC (rev 1242) @@ -26,6 +26,7 @@ /** * TODO * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class JHexEditApplication extends Application<byte[]> { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 02:22:24
|
Revision: 1256 http://japi.svn.sourceforge.net/japi/?rev=1256&view=rev Author: christianhujer Date: 2009-03-02 01:34:24 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- tools/jwget/trunk/src/prj/net/sf/japi/jwget/JWGet.java Modified: tools/jwget/trunk/src/prj/net/sf/japi/jwget/JWGet.java =================================================================== --- tools/jwget/trunk/src/prj/net/sf/japi/jwget/JWGet.java 2009-03-02 01:34:14 UTC (rev 1255) +++ tools/jwget/trunk/src/prj/net/sf/japi/jwget/JWGet.java 2009-03-02 01:34:24 UTC (rev 1256) @@ -32,6 +32,7 @@ /** WGet implementation in Java. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class JWGet extends LogCommand { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 02:22:23
|
Revision: 1249 http://japi.svn.sourceforge.net/japi/?rev=1249&view=rev Author: christianhujer Date: 2009-03-02 01:32:35 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java tools/archStat/trunk/src/prj/net/sf/japi/archstat/FileStat.java tools/archStat/trunk/src/prj/net/sf/japi/archstat/LineCheck.java tools/archStat/trunk/src/prj/net/sf/japi/archstat/LogEntry.java tools/archStat/trunk/src/prj/net/sf/japi/archstat/LogSystem.java tools/archStat/trunk/src/prj/net/sf/japi/archstat/Logger.java tools/archStat/trunk/src/prj/net/sf/japi/archstat/MessageType.java tools/archStat/trunk/src/prj/net/sf/japi/archstat/StreamLogger.java Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java =================================================================== --- tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java 2009-03-02 01:32:13 UTC (rev 1248) +++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java 2009-03-02 01:32:35 UTC (rev 1249) @@ -40,6 +40,7 @@ /** A Command for performing recursive source code file statistics. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class ArchStat extends BasicCommand { Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/FileStat.java =================================================================== --- tools/archStat/trunk/src/prj/net/sf/japi/archstat/FileStat.java 2009-03-02 01:32:13 UTC (rev 1248) +++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/FileStat.java 2009-03-02 01:32:35 UTC (rev 1249) @@ -29,6 +29,7 @@ /** Per-File statistics. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class FileStat { Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/LineCheck.java =================================================================== --- tools/archStat/trunk/src/prj/net/sf/japi/archstat/LineCheck.java 2009-03-02 01:32:13 UTC (rev 1248) +++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/LineCheck.java 2009-03-02 01:32:35 UTC (rev 1249) @@ -26,6 +26,7 @@ /** A Line-based Check. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class LineCheck { Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/LogEntry.java =================================================================== --- tools/archStat/trunk/src/prj/net/sf/japi/archstat/LogEntry.java 2009-03-02 01:32:13 UTC (rev 1248) +++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/LogEntry.java 2009-03-02 01:32:35 UTC (rev 1249) @@ -24,6 +24,7 @@ /** A LogEntry represents an atomic ArchStat information. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class LogEntry { Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/LogSystem.java =================================================================== --- tools/archStat/trunk/src/prj/net/sf/japi/archstat/LogSystem.java 2009-03-02 01:32:13 UTC (rev 1248) +++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/LogSystem.java 2009-03-02 01:32:35 UTC (rev 1249) @@ -21,6 +21,7 @@ /** Static access to logging. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public final class LogSystem { Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/Logger.java =================================================================== --- tools/archStat/trunk/src/prj/net/sf/japi/archstat/Logger.java 2009-03-02 01:32:13 UTC (rev 1248) +++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/Logger.java 2009-03-02 01:32:35 UTC (rev 1249) @@ -21,6 +21,7 @@ /** Loggers log LogEntries. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public interface Logger { Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/MessageType.java =================================================================== --- tools/archStat/trunk/src/prj/net/sf/japi/archstat/MessageType.java 2009-03-02 01:32:13 UTC (rev 1248) +++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/MessageType.java 2009-03-02 01:32:35 UTC (rev 1249) @@ -21,6 +21,7 @@ /** A MessageType. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public enum MessageType { Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/StreamLogger.java =================================================================== --- tools/archStat/trunk/src/prj/net/sf/japi/archstat/StreamLogger.java 2009-03-02 01:32:13 UTC (rev 1248) +++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/StreamLogger.java 2009-03-02 01:32:35 UTC (rev 1249) @@ -22,6 +22,7 @@ /** The StreamLogger is a Logger for LogEntries that logs to the specified Stream. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class StreamLogger implements Logger { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 02:22:22
|
Revision: 1241 http://japi.svn.sourceforge.net/japi/?rev=1241&view=rev Author: christianhujer Date: 2009-03-02 01:30:21 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/AnswerText.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCAnswerText.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCQuestionText.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Main.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/OpenQuestionText.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionText.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/GUIOptionsSettingsModule.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestAndDirsFileFilter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestFileFilter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaAndDirsFileFilter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaFileFilter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ListSelectionActionAdapter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionInfoGUI.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionGUI.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsPanel.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestSer.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/AbstractCachingImporter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/CachingImporterAdapter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Exporter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOBase.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOModuleProvider.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOUtilities.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Importer.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/ImporterFileFilter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/list/ActionListCellRenderer.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/text/MimeComboBox.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/MimeData.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/StringToTextComparatorAdapter.java progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/Text.java progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/AnswerText.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/AnswerText.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/AnswerText.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -23,6 +23,7 @@ /** An Answer. * Mutable object for answers. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public abstract class AnswerText implements Serializable, Cloneable { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCAnswerText.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCAnswerText.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCAnswerText.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -21,6 +21,7 @@ /** Class for Multiple Choice Answers. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class MCAnswerText extends AnswerText { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCQuestionText.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCQuestionText.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCQuestionText.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -25,6 +25,7 @@ /** Class for Multiple Choice Questions. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class MCQuestionText extends QuestionText { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Main.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Main.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Main.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -21,6 +21,7 @@ /** Klasse, um das Programm zu starten. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public final class Main { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/OpenQuestionText.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/OpenQuestionText.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/OpenQuestionText.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -25,6 +25,7 @@ /** Class for Open Questions. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class OpenQuestionText extends QuestionText { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -29,6 +29,7 @@ /** The Program contains the basic references such as the current QuestionCollection and provides important main operations like loading and saving * files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo Refactor to Program 1-n Document, find an alternative common name for Document to avoid conflict with XML names. */ public class Program { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -27,6 +27,7 @@ /** Class for holding a Collection of Questions. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class QuestionCollection implements Serializable, Iterable<QuestionText> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionText.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionText.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionText.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -28,6 +28,7 @@ * <li>When being at the GUI, clone if you must write changes to the object which are not yet to go the the QuestionCollection. Otherwise refer.</li> * </ul> * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public abstract class QuestionText implements Serializable, Cloneable { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -27,6 +27,7 @@ /** Class representing the settings for JTest. * It also manages the list of recent URLs. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class Settings implements RecentURLs { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -29,6 +29,7 @@ /** Class to vizualize a single MCAnswerText. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class AnswerGUI extends JComponent implements ChangeListener { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -32,6 +32,7 @@ /** Settings module. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class FirstSettingsModule extends AbstractPrefs { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/GUIOptionsSettingsModule.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/GUIOptionsSettingsModule.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/GUIOptionsSettingsModule.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -32,6 +32,7 @@ /** Settings module. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class GUIOptionsSettingsModule extends AbstractPrefs { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestAndDirsFileFilter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestAndDirsFileFilter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestAndDirsFileFilter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -22,6 +22,7 @@ /** FileFilter for JFileChooser that accepts only JTest files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class JTestAndDirsFileFilter extends FileFilter { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestFileFilter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestFileFilter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestFileFilter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -22,6 +22,7 @@ /** FileFilter for JFileChooser that accepts only JTest files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class JTestFileFilter extends FileFilter { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaAndDirsFileFilter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaAndDirsFileFilter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaAndDirsFileFilter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -22,6 +22,7 @@ /** FileFilter for JFileChooser that accepts only KEduca files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class KEducaAndDirsFileFilter extends FileFilter { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaFileFilter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaFileFilter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaFileFilter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -22,6 +22,7 @@ /** FileFilter for JFileChooser that accepts only KEduca files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class KEducaFileFilter extends FileFilter { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ListSelectionActionAdapter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ListSelectionActionAdapter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ListSelectionActionAdapter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -26,6 +26,7 @@ /** Adapter which creates and fires ActionEvents on ListSelections. * Requires that the event source is a JList and its model consists of ActionListeners, e.g. getSelectedValue() returns an ActionListener. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class ListSelectionActionAdapter implements ListSelectionListener { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -60,6 +60,7 @@ /** Programmfenster. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo workout transience of program * @fixme #1 Once the menubar is hidden, even the KeyStroke won't make it visible anymore. Even other KeyStrokes from JMenuItems don't work anymore then. Fix this. * @fixme #2 F10 activates the wrong menubar. Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -35,6 +35,7 @@ /** User Interface for a Collection of Questions. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class QuestionCollectionGUI extends JComponent { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionInfoGUI.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionInfoGUI.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionInfoGUI.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -24,6 +24,7 @@ /** Displays information about a QuestionCollection. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class QuestionCollectionInfoGUI extends JComponent { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionGUI.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionGUI.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionGUI.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -49,6 +49,7 @@ /** JComponent to visualize a question and its answers. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class QuestionGUI extends JComponent implements ChangeListener { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -34,6 +34,7 @@ /** Graphical user interface for displaying a review page for all questions. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class ReviewGUI extends JComponent { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -32,6 +32,7 @@ * @todo do some rework to use SettingsPanels that contain a certain field of settings and some index function to make it look similar as the settings * of KDE / stuff look like. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class SettingsGUI extends JComponent { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsPanel.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsPanel.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsPanel.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -22,6 +22,7 @@ /** A component that is a View and a Controller for a part of Settings storable in Preferences or special objects. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public abstract class SettingsPanel extends JComponent { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -38,6 +38,7 @@ * <li>Open Questions ({@link OpenQuestionText})</li> * </ul> * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class SolutionGUI extends JComponent { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -29,6 +29,7 @@ * would be superfluous. * @param <T> Type which is imported. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo enhance map access by using string pools * @todo tell clients to use string pools */ Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestSer.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestSer.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestSer.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -29,6 +29,7 @@ /** Interface for reading and writing serialized JTest files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class JTestSer extends AbstractJTestImport<QuestionCollection> implements Exporter<QuestionCollection> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -47,6 +47,7 @@ /** Interface for reading and writing JTestV1 files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo use schema */ public class JTestV1 extends AbstractJTestImport<QuestionCollection> implements Exporter<QuestionCollection> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -44,6 +44,7 @@ /** Interface for reading and writing KEduca files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class KEduca extends AbstractJTestImport<QuestionCollection> implements Exporter<QuestionCollection> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -21,6 +21,7 @@ /** Class for XML Utilities like EntityResolvers, ErrorHandlers and stuff like that. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public final class XMLUtils { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -64,6 +64,7 @@ * All menus you created will automatically be uptodate. * @param <T> Type which is managed. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @see Component#setVisible(boolean) * @todo support icons for the managed components, e.g. use a client property ({@link JComponent#putClientProperty(Object,Object)} / {@link * JComponent#getClientProperty(Object)}) (partly done) Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -32,6 +32,7 @@ /** Class for displaying help to the user. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo initial page */ public class HelpManager extends WindowAdapter { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -24,6 +24,7 @@ /** Class for managing internal Frames. * It provides a list of internal frames which can be hidden and shown along with a factory for creating a menu to show and hide these internal frames. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class InternalFrameManager extends AbstractManager<JInternalFrame> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -25,6 +25,7 @@ /** Class for managing menus. * It provides a list of menus which can be hidden and shown along with a factory for creating a menu to show and hide these menus. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class MenuManager extends AbstractManager<JMenu> { 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-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -47,6 +47,7 @@ * It works quite like {@link JFileChooser}, even a bit simpler. * Just invoke one of the static methods {@link #showOpenURLDialog(Component)} or {@link #showOpenURLDialog(Component,JFileChooser)}. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public final class OpenURLPane extends JComponent { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -35,6 +35,7 @@ * <p /> * Note: all added toolbars automatically get a popup menu for managing the toolbars. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @see JToolBar * @see ToolBarLayout * @todo implement {@link #configureToolbars()} Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/AbstractCachingImporter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/AbstractCachingImporter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/AbstractCachingImporter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -28,6 +28,7 @@ * would be superfluous. * @param <T> Type which is imported. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo enhance map access by using string pools * @todo tell clients to use string pools */ Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/CachingImporterAdapter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/CachingImporterAdapter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/CachingImporterAdapter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -23,6 +23,7 @@ /** Adapter class to have a caching implementation of {@link Importer} where the Importer-implementation cannot extend {@link AbstractCachingImporter}. * @param <T> Type which is imported. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class CachingImporterAdapter<T> extends AbstractCachingImporter<T> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Exporter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Exporter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Exporter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -23,6 +23,7 @@ /** Interface for classes that are able to export documents (called "Export Module"). * @param <T> Type which is exported. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo think about save(T doc, String url) */ public interface Exporter<T> extends IOBase<T> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOBase.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOBase.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOBase.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -20,6 +20,7 @@ /** Super-Interface for Import- and Export-Modules. * @param <T> Type for which to provide Import or Export. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public interface IOBase<T> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOModuleProvider.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOModuleProvider.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOModuleProvider.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -30,6 +30,7 @@ /** Provides access to different IO-Modules. * @param <T> Type for which to provide IO modules. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo add MIME Type support, perhaps supporting classes like DataFlavor * @todo add auto configuration support via system properties */ Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOUtilities.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOUtilities.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/IOUtilities.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -25,6 +25,7 @@ /** * Utility class for I/O operations. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public final class IOUtilities { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Importer.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Importer.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Importer.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -23,6 +23,7 @@ /** Interface for classes that are able to import documents (called "Import Module"). * @param <T> Type which is imported. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo think about a generic caching implementation */ public interface Importer<T> extends IOBase<T> { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/ImporterFileFilter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/ImporterFileFilter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/ImporterFileFilter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -33,6 +33,7 @@ * instances of this class. * @param <T> Type of the importer for which to filter. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public final class ImporterFileFilter<T> extends FileFilter { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/list/ActionListCellRenderer.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/list/ActionListCellRenderer.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/list/ActionListCellRenderer.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -35,6 +35,7 @@ * Note: This class does not make your Actions activated (actionPerformed), it solely displays icons / text in a list. * To get your actions activated, you need to program JList. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class ActionListCellRenderer extends JButton implements ListCellRenderer { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/text/MimeComboBox.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/text/MimeComboBox.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/text/MimeComboBox.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -22,6 +22,7 @@ /** ComboBox for choosing or entering a MimeType. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class MimeComboBox extends JComboBox { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/MimeData.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/MimeData.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/MimeData.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -21,6 +21,7 @@ * This interface makes no assumption about the mutability of its implementations. * Implementations may or may not be mutable. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public interface MimeData { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/StringToTextComparatorAdapter.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/StringToTextComparatorAdapter.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/StringToTextComparatorAdapter.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -24,6 +24,7 @@ /** An adapter to be able to use String comparators for Text objects. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class StringToTextComparatorAdapter implements Comparator<Text>, Serializable { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/Text.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/Text.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/util/Text.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -28,6 +28,7 @@ * For convenience, this method implements some interfaces, especially <code>CharSequence</code>. * Mutability is only possible by <code>String</code> exchange. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class Text implements Serializable, Comparable<Text>, CharSequence, MimeData { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java 2009-03-02 01:27:48 UTC (rev 1240) +++ progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java 2009-03-02 01:30:21 UTC (rev 1241) @@ -42,6 +42,7 @@ * If you want your frames and dialogs to be default look and feel decorated, you currently must invoke the corresponding method {@link * #setDefaultLookAndFeelDecorated(boolean)} before creating any instances of JFrame or JDialog. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 * @todo find a method to update the isDefaultLookAndFeelDecorated state of Frames. * @todo perhaps this class should be more a component manager than just a LookAndFeelManager? */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 02:22:21
|
Revision: 1253 http://japi.svn.sourceforge.net/japi/?rev=1253&view=rev Author: christianhujer Date: 2009-03-02 01:33:34 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- tools/fontbrowser/trunk/src/prj/net/sf/japi/tools/fontbrowser/FontBrowser.java Modified: tools/fontbrowser/trunk/src/prj/net/sf/japi/tools/fontbrowser/FontBrowser.java =================================================================== --- tools/fontbrowser/trunk/src/prj/net/sf/japi/tools/fontbrowser/FontBrowser.java 2009-03-02 01:33:23 UTC (rev 1252) +++ tools/fontbrowser/trunk/src/prj/net/sf/japi/tools/fontbrowser/FontBrowser.java 2009-03-02 01:33:34 UTC (rev 1253) @@ -39,6 +39,7 @@ /** A Font Browser. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public final class FontBrowser { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 02:22:20
|
Revision: 1255 http://japi.svn.sourceforge.net/japi/?rev=1255&view=rev Author: christianhujer Date: 2009-03-02 01:34:14 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- tools/jgrep/trunk/src/prj/net/sf/japi/tools/jgrep/JGrep.java Modified: tools/jgrep/trunk/src/prj/net/sf/japi/tools/jgrep/JGrep.java =================================================================== --- tools/jgrep/trunk/src/prj/net/sf/japi/tools/jgrep/JGrep.java 2009-03-02 01:33:46 UTC (rev 1254) +++ tools/jgrep/trunk/src/prj/net/sf/japi/tools/jgrep/JGrep.java 2009-03-02 01:34:14 UTC (rev 1255) @@ -79,6 +79,8 @@ * <li>-v, --revert-match for showing only non-matching lines.</li> * <li>-m, --max-count=NUM stop after NUM matches.</li> * </ul> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class JGrep extends BasicCommand { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 02:22:20
|
Revision: 1251 http://japi.svn.sourceforge.net/japi/?rev=1251&view=rev Author: christianhujer Date: 2009-03-02 01:33:13 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- tools/dircount/trunk/src/prj/net/sf/japi/dircount/DirCount.java Modified: tools/dircount/trunk/src/prj/net/sf/japi/dircount/DirCount.java =================================================================== --- tools/dircount/trunk/src/prj/net/sf/japi/dircount/DirCount.java 2009-03-02 01:33:01 UTC (rev 1250) +++ tools/dircount/trunk/src/prj/net/sf/japi/dircount/DirCount.java 2009-03-02 01:33:13 UTC (rev 1251) @@ -27,6 +27,7 @@ /** A command that counts subdirectories and files. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class DirCount extends LogCommand { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |