Thread: [Japi-cvs] SF.net SVN: japi:[1036] progs/jeduca/trunk/src/prj/net/sf/japi
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2009-02-22 09:14:20
|
Revision: 1036 http://japi.svn.sourceforge.net/japi/?rev=1036&view=rev Author: christianhujer Date: 2009-02-22 09:14:16 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Fixed checkstyle issues. 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/action.properties progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/action_de.properties 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/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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/AnswerText.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -22,7 +22,7 @@ /** An Answer. * Mutable object for answers. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCAnswerText.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -20,13 +20,11 @@ import java.util.List; /** Class for Multiple Choice Answers. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class MCAnswerText extends AnswerText { /** Serial Version. */ - // XXX IntelliJ IDEA - @SuppressWarnings({"AnalyzingVariableNaming"}) private static final long serialVersionUID = 1L; /** The checked state of this 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/MCQuestionText.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -24,13 +24,11 @@ import java.util.List; /** Class for Multiple Choice Questions. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class MCQuestionText extends QuestionText { /** Serial Version. */ - // XXX... - @SuppressWarnings({"AnalyzingVariableNaming"}) private static final long serialVersionUID = 1L; /** The answers. 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Main.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -20,10 +20,14 @@ import net.sf.japi.progs.jeduca.jtest.gui.ProgramFrame; /** Klasse, um das Programm zu starten. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ -public class Main { +public final class Main { + /** Do not instantiate. */ + private Main() { + } + /** Main program. * @param args command line arguments * @throws Throwable in case of problems starting the program. 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/OpenQuestionText.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -24,13 +24,11 @@ import java.util.List; /** Class for Open Questions. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class OpenQuestionText extends QuestionText { /** Serial Version. */ - // XXX IntelliJ IDEA - @SuppressWarnings({"AnalyzingVariableNaming"}) private static final long serialVersionUID = 1L; /** The regular expressions. @@ -100,7 +98,7 @@ /** {@inheritDoc} */ @Override public OpenQuestionText clone() throws CloneNotSupportedException { final OpenQuestionText clone = (OpenQuestionText) super.clone(); - // XXX IntelliJ IDEA: This is not the clone but required for deep clone of clone fields. + // XXX:2009-02-22:christianhujer:IntelliJ IDEA: This is not the clone but required for deep clone of clone fields. //noinspection CloneCallsConstructors clone.expressions = new ArrayList<String>(expressions); return clone; 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Program.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -28,8 +28,8 @@ /** 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> * @todo Refactor to Program 1-n Document, find an alternative common name for Document to avoid conflict with XML names. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class Program { @@ -67,7 +67,7 @@ */ public void setQuestionCollection(final QuestionCollection col) { this.col = col; - // TODO: Event Handling + // TODO:2009-02-22:christianhujer:Event Handling } /** Get the QuestionCollection. 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionCollection.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -26,12 +26,11 @@ import java.util.List; /** Class for holding a Collection of Questions. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class QuestionCollection implements Serializable, Iterable<QuestionText> { /** Serial Version. */ - // XXX IntelliJ IDEA private static final long serialVersionUID = 1L; /** The Questions. 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/QuestionText.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -27,13 +27,11 @@ * <li>When going to another QuestionCollection, clone</li> * <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> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public abstract class QuestionText implements Serializable, Cloneable { /** Serial Version. */ - // XXX IntelliJ IDEA - @SuppressWarnings({"AnalyzingVariableNaming"}) private static final long serialVersionUID = 1L; /** The HTML state of this QuestionText. 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/Settings.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -26,7 +26,7 @@ /** Class representing the settings for JTest. * It also manages the list of recent URLs. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/AnswerGUI.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -28,8 +28,7 @@ import net.sf.japi.progs.jeduca.jtest.MCAnswerText; /** Class to vizualize a single MCAnswerText. - * @author $Author: chris $ - * @version $Id: AnswerGUI.java,v 1.5 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class AnswerGUI extends JComponent implements ChangeListener { @@ -60,9 +59,9 @@ setLayout(new BorderLayout()); this.answer = answer; final char mnemo = (char) ('A' + index - 1); - final String answerText = answer.isHTML() ? - HTML_START + "<u>" + mnemo + "</u>. " + answer.getText() + HTML_END : - answer.getText(); + final String answerText = answer.isHTML() + ? HTML_START + "<u>" + mnemo + "</u>. " + answer.getText() + HTML_END + : answer.getText(); if (buttons == null) { //button = new JCheckBox((answer.isHTML() ? "<html> " : "") + answer.getText()); button = new JCheckBox(answerText); 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/FirstSettingsModule.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -31,8 +31,7 @@ import net.sf.japi.swing.prefs.AbstractPrefs; /** Settings module. - * @author $Author: chris $ - * @version $Id: FirstSettingsModule.java,v 1.2 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class FirstSettingsModule extends AbstractPrefs { @@ -58,7 +57,7 @@ */ public FirstSettingsModule(final Settings settings) { setLayout(new GridBagLayout()); - final JPanel showSolutionPanel = new JPanel(new GridLayout(2,1)); + final JPanel showSolutionPanel = new JPanel(new GridLayout(2, 1)); //setBorder(createCompoundBorder(createTitledBorder("Dummy Lösungen anzeigen"), createEtchedBorder())); showSolutionPanel.setBorder(createTitledBorder("Dummy Lösungen anzeigen")); final ButtonGroup solutions = new ButtonGroup(); @@ -97,7 +96,7 @@ restore(); } - /** ??? */ // TODO {@inheritDoc} ??? + /** ??? */ // TODO:2009-02-22:christianhujer:Provide in supertype and use {@inheritDoc} ? public void restore() { showSolutionsOn.setSelected(settings.isShowQuestionSolution()); showSolutionsOff.setSelected(!settings.isShowQuestionSolution()); @@ -115,17 +114,17 @@ /** {@inheritDoc} */ public void defaults() { - //To change body of implemented methods use File | Settings | File Templates. - // TODO + // TODO:2009-02-22:christianhujer:Implement. restore(); } public boolean isChanged() { - return false;//To change body of implemented methods use File | Settings | File Templates. + // TODO:2009-02-22:christianhujer:Implement. + return false; } public void revert() { - //To change body of implemented methods use File | Settings | File Templates. + // TODO:2009-02-22:christianhujer:Implement. } } // class FirstSettingsModule 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/GUIOptionsSettingsModule.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -31,8 +31,7 @@ import net.sf.japi.swing.prefs.AbstractPrefs; /** Settings module. - * @author $Author: chris $ - * @version $Id: GUIOptionsSettingsModule.java,v 1.2 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class GUIOptionsSettingsModule extends AbstractPrefs { @@ -48,7 +47,7 @@ */ public GUIOptionsSettingsModule(final Settings settings) { setLayout(new GridBagLayout()); - final JPanel askForQuitPanel = new JPanel(new GridLayout(2,1)); + final JPanel askForQuitPanel = new JPanel(new GridLayout(2, 1)); //setBorder(createCompoundBorder(createTitledBorder("Dummy Lösungen anzeigen"), createEtchedBorder())); askForQuitPanel.setBorder(createTitledBorder("Dummy Beim Beenden nachfragen")); final ButtonGroup askForQuit = new ButtonGroup(); @@ -69,7 +68,7 @@ gbc.weighty = 1.0; add(askForQuitPanel, gbc); setSettings(settings); - setHelpURL(getClass().getClassLoader().getResource("help/GUIOptionsSettingsModule.html")); // TODO localize this + setHelpURL(getClass().getClassLoader().getResource("help/GUIOptionsSettingsModule.html")); // TODO:2009-02-22:christianhujer:localize this setListLabelText("Dummy Auflösung2"); setLabelText("Dummy Einstellungen zum Anzeigen der Auflösungen"); } @@ -83,9 +82,9 @@ restore(); } - /** ??? */ // TODO {@inheritDoc} ??? + /** ??? */ // TODO:2009-02-22:christianhujer:Provide in supertype and use {@inheritDoc} ? public void restore() { - // TODO + // TODO:2009-02-22:christianhujer:Implement. } /** {@inheritDoc} */ @@ -95,22 +94,23 @@ /** {@inheritDoc} */ public void apply() { + // TODO:2009-02-22:christianhujer:Implement. //settings.setShowQuestionSolution(showSolutionsOn.isSelected()); } /** {@inheritDoc} */ public void defaults() { - //To change body of implemented methods use File | Settings | File Templates. - // TODO + // TODO:2009-02-22:christianhujer:Implement. restore(); } public boolean isChanged() { - return false;//To change body of implemented methods use File | Settings | File Templates. + // TODO:2009-02-22:christianhujer:Implement. + return false; } public void revert() { - //To change body of implemented methods use File | Settings | File Templates. + // TODO:2009-02-22:christianhujer:Implement. } /** Returns the Settings. 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestAndDirsFileFilter.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -21,8 +21,7 @@ import javax.swing.filechooser.FileFilter; /** FileFilter for JFileChooser that accepts only JTest files. - * @author $Author: chris $ - * @version $Id: JTestAndDirsFileFilter.java,v 1.3 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/JTestFileFilter.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -21,8 +21,7 @@ import javax.swing.filechooser.FileFilter; /** FileFilter for JFileChooser that accepts only JTest files. - * @author $Author: chris $ - * @version $Id: JTestFileFilter.java,v 1.3 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaAndDirsFileFilter.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -21,8 +21,7 @@ import javax.swing.filechooser.FileFilter; /** FileFilter for JFileChooser that accepts only KEduca files. - * @author $Author: chris $ - * @version $Id: KEducaAndDirsFileFilter.java,v 1.3 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/KEducaFileFilter.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -21,8 +21,7 @@ import javax.swing.filechooser.FileFilter; /** FileFilter for JFileChooser that accepts only KEduca files. - * @author $Author: chris $ - * @version $Id: KEducaFileFilter.java,v 1.3 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ListSelectionActionAdapter.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -25,8 +25,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 $Author: chris $ - * @version $Id: ListSelectionActionAdapter.java,v 1.3 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class ListSelectionActionAdapter implements ListSelectionListener { @@ -35,7 +34,7 @@ */ public void valueChanged(final ListSelectionEvent e) { if (e.getValueIsAdjusting()) { - ((ActionListener) ((JList)e.getSource()).getSelectedValue()).actionPerformed(new ActionEvent(e.getSource(), 0, "")); + ((ActionListener) ((JList) e.getSource()).getSelectedValue()).actionPerformed(new ActionEvent(e.getSource(), 0, "")); } } 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -59,8 +59,7 @@ import org.jetbrains.annotations.Nullable; /** Programmfenster. - * @author $Author: chris $ - * @version $Id: ProgramFrame.java,v 1.7 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @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. @@ -133,7 +132,7 @@ add(questionCollectionGUI); final JToolBar menuToolBar = new JToolBar(ACTION_BUILDER.getString("menuToolBar.name")); menuToolBar.add(menuBar); - //menuToolBar.putClientProperty(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(ACTION_BUILDER.getString("menuToolBar.accel"))); // FIXME #1 + //menuToolBar.putClientProperty(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(ACTION_BUILDER.getString("menuToolBar.accel"))); // FIXME:2009-02-22:christianhujer:Doesn't work somehow. final JToolBar bookmarkToolBar = bookmarkManager.createBookmarkToolBar(); final JToolBar programToolBar = ACTION_BUILDER.createToolBar(this, "programToolBar"); final JToolBar navigationToolBar = questionCollectionGUI.createNavigationToolBar(); @@ -141,11 +140,11 @@ add(programToolBar, NORTH); add(bookmarkToolBar, NORTH); add(navigationToolBar, NORTH); - //tm.add(menuToolBar); // FIXME #1 + //tm.add(menuToolBar); // FIXME:2009-02-22:christianhujer:Doesn't work somehow. tm.add(programToolBar); tm.add(bookmarkToolBar); tm.add(navigationToolBar); - //add(questionCollectionGUI.createNavigationToolBar(), SOUTH); // FIXME #1 + //add(questionCollectionGUI.createNavigationToolBar(), SOUTH); // FIXME:2009-02-22:christianhujer:Doesn't work somehow. menuBar.add(mDoc); menuBar.add(mView); final JMenu navigationMenu = questionCollectionGUI.createNavigationMenu(); @@ -215,12 +214,12 @@ } /** {@inheritDoc} */ - // TODO Do not return null if loading was successful. + // TODO:2009-02-22:christianhujer:Do not return null if loading was successful. @NotNull public Document<Object> load(@NotNull final String uri) { boolean okay; try { - // TODO: IOManager + // TODO:2009-02-22:christianhujer:IOManager // program.eduImport(url); program.load(uri); questionCollectionGUI.setQuestionCollection(program.getQuestionCollection()); @@ -259,7 +258,7 @@ /** Print Action. */ @ActionMethod public void print() { - // TODO + // TODO:2009-02-22:christianhujer:Implement. } /** Prefs Action. */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionGUI.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -35,8 +35,7 @@ import net.sf.japi.swing.action.ActionBuilderFactory; /** User Interface for a Collection of Questions. - * @author $Author: chris $ - * @version $Id: QuestionCollectionGUI.java,v 1.7 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class QuestionCollectionGUI extends JComponent { @@ -44,7 +43,8 @@ private static final long serialVersionUID = 1L; /** The Resource bundle. */ - private static final ResourceBundle res = ResourceBundle.getBundle("net.sf.japi.progs.jeduca.jtest.gui.action"); + // TODO:2009-02-22:christianhujer:Get rid of resource bundle. + private static final ResourceBundle RES = ResourceBundle.getBundle("net.sf.japi.progs.jeduca.jtest.gui.action"); /** Constant for showing the collection info. */ private static final String COLLECTION_INFO = "CollectionInfo"; @@ -312,8 +312,8 @@ * @return Navigation Menu */ public JMenu createNavigationMenu() { - final JMenu menu = new JMenu(res.getString("nav.text")); - menu.setName(res.getString("nav.text")); + final JMenu menu = new JMenu(RES.getString("nav.text")); + menu.setName(RES.getString("nav.text")); for (final Action action : navigationActions) { menu.add(new JMenuItem(action)); } 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionCollectionInfoGUI.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -23,8 +23,7 @@ import net.sf.japi.progs.jeduca.jtest.QuestionCollection; /** Displays information about a QuestionCollection. - * @author $Author: chris $ - * @version $Id: QuestionCollectionInfoGUI.java,v 1.4 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/QuestionGUI.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -48,8 +48,7 @@ import net.sf.japi.progs.jeduca.jtest.QuestionText; /** JComponent to visualize a question and its answers. - * @author $Author: chris $ - * @version $Id: QuestionGUI.java,v 1.5 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class QuestionGUI extends JComponent implements ChangeListener { @@ -126,7 +125,7 @@ */ public void setQuestion(final QuestionText question) { if (this.question instanceof OpenQuestionText) { - ((OpenQuestionText)this.question).setAnswer(textField.getText()); + ((OpenQuestionText) this.question).setAnswer(textField.getText()); } this.question = question; answersPanel.removeAll(); @@ -135,14 +134,14 @@ questionPanel.setEditable(false); gbc.weighty = 0.0; if (question instanceof MCQuestionText) { - final List<MCAnswerText> answers = ((MCQuestionText)question).getAnswerTexts(); - final ButtonGroup gp = ((MCQuestionText)question).countRightAnswers() == 1 ? new ButtonGroup() : null; + final List<MCAnswerText> answers = ((MCQuestionText) question).getAnswerTexts(); + final ButtonGroup gp = ((MCQuestionText) question).countRightAnswers() == 1 ? new ButtonGroup() : null; int i = 1; for (final MCAnswerText answer : answers) { answersPanel.add(new AnswerGUI(answer, gp, i++), gbc); } } else if (question instanceof OpenQuestionText) { - textField.setText(((OpenQuestionText)question).getAnswer()); + textField.setText(((OpenQuestionText) question).getAnswer()); answersPanel.add(textField); } gbc.weighty = 1.0; 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/ReviewGUI.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -33,8 +33,7 @@ import net.sf.japi.swing.VerticalFlowLayout; /** Graphical user interface for displaying a review page for all questions. - * @author $Author: chris $ - * @version $Id: ReviewGUI.java,v 1.4 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsGUI.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -31,8 +31,7 @@ /** User Interface for loading, saving and changing the settings. * @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 $Author: chris $ - * @version $Id: SettingsGUI.java,v 1.5 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SettingsPanel.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -21,8 +21,7 @@ import javax.swing.JComponent; /** A component that is a View and a Controller for a part of Settings storable in Preferences or special objects. - * @author $Author: chris $ - * @version $Id: SettingsPanel.java,v 1.3 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/gui/SolutionGUI.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -37,8 +37,7 @@ * <li>Multiple Choice ({@link MCQuestionText})</li> * <li>Open Questions ({@link OpenQuestionText})</li> * </ul> - * @author $Author: chris $ - * @version $Id: SolutionGUI.java,v 1.5 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class SolutionGUI extends JComponent { @@ -151,7 +150,7 @@ * @return supplied StringBuilder for convenience */ private static StringBuilder appendOpenQuestion(final StringBuilder sb, final OpenQuestionText question) { - // TODO + // TODO:2009-02-22:christianhujer:Implement appending. //sb.append("<ul>"); //sb.append(question.getAnswerExplanantion()); return sb; 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/AbstractJTestImport.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -27,10 +27,10 @@ * the implementation with an intelligent caching mechanism. * Subclasses cannot rely on {@link #canLoadImpl(String)} being invoked always, since if the stored information still is uptodate, calling the method * would be superfluous. + * @param <T> Type which is imported. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @todo enhance map access by using string pools * @todo tell clients to use string pools - * @author $Author: chris $ - * @version $Id: AbstractJTestImport.java,v 1.3 2006/01/31 23:11:54 chris Exp $ */ public abstract class AbstractJTestImport<T> implements Importer<T> { @@ -38,8 +38,12 @@ * @author $Author: chris $ * @version $Id: AbstractJTestImport.java,v 1.3 2006/01/31 23:11:54 chris Exp $ */ - private static class Uptodate { + private static final class Uptodate { + /** Do not instantiate out of scope. */ + private Uptodate() { + } + /** Whether the file can be loaded. */ private boolean canLoad; @@ -65,9 +69,9 @@ /** Check whether a file can be loaded. * Subclasses must implement this method instead of {@link #canLoad(String)} - * @param url URL to check whether it is loadable + * @param uri URL to check whether it is loadable * @return <code>true</code> if this import module supports loading a QuestionCollection from the supplied file, otherwise <code>false</code> */ - protected abstract boolean canLoadImpl(final String url); + protected abstract boolean canLoadImpl(final String uri); } // class AbstractJTestImport 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestSer.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -26,11 +26,9 @@ import java.net.URL; import net.sf.japi.progs.jeduca.jtest.QuestionCollection; import net.sf.japi.progs.jeduca.swing.io.Exporter; -import net.sf.japi.progs.jeduca.swing.io.Importer; /** Interface for reading and writing serialized JTest files. - * @author $Author: chris $ - * @version $Id: JTestSer.java,v 1.4 2006/01/31 23:11:54 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/JTestV1.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -46,7 +46,7 @@ import org.xml.sax.SAXParseException; /** Interface for reading and writing JTestV1 files. - * @author $Author: chris $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @todo use schema */ public class JTestV1 extends AbstractJTestImport<QuestionCollection> implements Exporter<QuestionCollection> { @@ -190,15 +190,15 @@ */ private void setInfo(final QuestionCollection col, final Document doc) { try { - col.setTitle (xp.evaluate("document/info/title", doc)); - col.setCategory (xp.evaluate("document/info/category", doc)); - col.setType (xp.evaluate("document/info/type", doc)); - col.setLevel (xp.evaluate("document/info/level", doc)); - col.setLanguage (xp.evaluate("document/info/language", doc)); - col.setAuthorName (xp.evaluate("document/info/author/name", doc)); + col.setTitle(xp.evaluate("document/info/title", doc)); + col.setCategory(xp.evaluate("document/info/category", doc)); + col.setType(xp.evaluate("document/info/type", doc)); + col.setLevel(xp.evaluate("document/info/level", doc)); + col.setLanguage(xp.evaluate("document/info/language", doc)); + col.setAuthorName(xp.evaluate("document/info/author/name", doc)); col.setAuthorEMail(xp.evaluate("document/info/author/email", doc)); - col.setAuthorWWW (xp.evaluate("document/info/author/www", doc)); - } catch (XPathExpressionException e) { + col.setAuthorWWW(xp.evaluate("document/info/author/www", doc)); + } catch (final XPathExpressionException e) { throw new Error(e); } } @@ -225,32 +225,30 @@ final Document doc = domImpl.createDocument(null, "Document", keduca); //System.err.println("<!DOCTYPE " + doc.getDoctype().getName() + ">"); final Element docEl = doc.getDocumentElement(); - { - final Element infoEl = doc.createElement("info"); - docEl.appendChild(infoEl); - infoEl.appendChild(create(doc, "title", col.getTitle())); - infoEl.appendChild(create(doc, "category", col.getCategory())); - infoEl.appendChild(create(doc, "type", col.getType())); - infoEl.appendChild(create(doc, "level", col.getLevel())); - infoEl.appendChild(create(doc, "language", col.getLanguage())); - { - final Element authorEl = doc.createElement("author"); - infoEl.appendChild(authorEl); - infoEl.appendChild(create(doc, "name", col.getAuthorName())); - infoEl.appendChild(create(doc, "email", col.getAuthorEMail())); - infoEl.appendChild(create(doc, "www", col.getAuthorWWW())); + + final Element infoEl = doc.createElement("info"); + docEl.appendChild(infoEl); + infoEl.appendChild(create(doc, "title", col.getTitle())); + infoEl.appendChild(create(doc, "category", col.getCategory())); + infoEl.appendChild(create(doc, "type", col.getType())); + infoEl.appendChild(create(doc, "level", col.getLevel())); + infoEl.appendChild(create(doc, "language", col.getLanguage())); + + final Element authorEl = doc.createElement("author"); + infoEl.appendChild(authorEl); + infoEl.appendChild(create(doc, "name", col.getAuthorName())); + infoEl.appendChild(create(doc, "email", col.getAuthorEMail())); + infoEl.appendChild(create(doc, "www", col.getAuthorWWW())); + + final Element dataEl = doc.createElement("data"); + docEl.appendChild(dataEl); + for (int i = 0; i < col.getSize(); i++) { + final QuestionText qt = col.getQuestion(i); + if (qt instanceof MCQuestionText) { // skip answers other than Multiple Choice + dataEl.appendChild(createQuestionEl(doc, (MCQuestionText) qt)); } } - { - final Element dataEl = doc.createElement("data"); - docEl.appendChild(dataEl); - for (int i = 0; i < col.getSize(); i++) { - final QuestionText qt = col.getQuestion(i); - if (qt instanceof MCQuestionText) { // skip answers other than Multiple Choice - dataEl.appendChild(createQuestionEl(doc, (MCQuestionText) qt)); - } - } - } + return doc; } @@ -295,6 +293,7 @@ } /** {@inheritDoc} */ + @Override protected boolean canLoadImpl(final String uri) { try { final ErrorCapture capture = new ErrorCapture(); @@ -315,7 +314,7 @@ private boolean errors; /** Create a new ErrorCapture. */ - ErrorCapture() {} + ErrorCapture() { } /** {@inheritDoc} */ public void warning(final SAXParseException exception) throws SAXException { 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/KEduca.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -43,7 +43,7 @@ import org.xml.sax.SAXException; /** Interface for reading and writing KEduca files. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ public class KEduca extends AbstractJTestImport<QuestionCollection> implements Exporter<QuestionCollection> { @@ -156,14 +156,14 @@ */ private void setInfo(final QuestionCollection col, final Document doc) { try { - col.setTitle (xp.evaluate("Document/Info/title", doc)); - col.setCategory (xp.evaluate("Document/Info/category", doc)); - col.setType (xp.evaluate("Document/Info/type", doc)); - col.setLevel (xp.evaluate("Document/Info/level", doc)); - col.setLanguage (xp.evaluate("Document/Info/language", doc)); - col.setAuthorName (xp.evaluate("Document/Info/author/name", doc)); + col.setTitle(xp.evaluate("Document/Info/title", doc)); + col.setCategory(xp.evaluate("Document/Info/category", doc)); + col.setType(xp.evaluate("Document/Info/type", doc)); + col.setLevel(xp.evaluate("Document/Info/level", doc)); + col.setLanguage(xp.evaluate("Document/Info/language", doc)); + col.setAuthorName(xp.evaluate("Document/Info/author/name", doc)); col.setAuthorEMail(xp.evaluate("Document/Info/author/email", doc)); - col.setAuthorWWW (xp.evaluate("Document/Info/author/www", doc)); + col.setAuthorWWW(xp.evaluate("Document/Info/author/www", doc)); } catch (final XPathExpressionException e) { throw new Error(e); } 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/jtest/io/XMLUtils.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -20,14 +20,15 @@ import org.xml.sax.ext.DefaultHandler2; /** Class for XML Utilities like EntityResolvers, ErrorHandlers and stuff like that. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ -public class XMLUtils { +public final class XMLUtils { /** Singleton instance. */ private static final XMLUtils INSTANCE = new XMLUtils(); /** Singleton constructor. */ - private XMLUtils() {} + private XMLUtils() { } /** Get an instance of XMLUtils. * @return instance of 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/AbstractManager.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -62,6 +62,9 @@ * </ul> * You may add and remove components to a Manager as you want. * All menus you created will automatically be uptodate. + * @param <T> Type which is managed. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @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) * @todo support accelerators for the managed components (partly done) @@ -70,17 +73,14 @@ * @todo provide access to SubAction, e.g. via an {@link ActionMap} * @todo change actions to Map with T as key and SubAction as value. * @todo support creation of single JCheckBoxes and JCheckBoxMenuitems. - * @author $Author: chris $ - * @version $Id: AbstractManager.java,v 1.4 2006/01/31 23:09:18 chris Exp $ - * @see Component#setVisible(boolean) */ public abstract class AbstractManager<T extends JComponent> { /** The actions of the components this Manager manages. */ - protected List<SubAction<?>> actions = new ArrayList<SubAction<?>>(); + private List<SubAction<?>> actions = new ArrayList<SubAction<?>>(); /** The Menus created. */ - protected Collection<JMenu> cMenus = new ArrayList<JMenu>(); + private Collection<JMenu> cMenus = new ArrayList<JMenu>(); /** Action Builder. */ private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing"); 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/HelpManager.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -31,14 +31,13 @@ import static javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE; /** Class for displaying help to the user. - * @author $Author: chris $ - * @version $Id: HelpManager.java,v 1.1 2005/10/20 07:21:57 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @todo initial page */ public class HelpManager extends WindowAdapter { /** The HelpManager instances. */ - private static final Map<String,HelpManager> managers = new WeakHashMap<String,HelpManager>(); + private static final Map<String, HelpManager> MANAGERS = new WeakHashMap<String, HelpManager>(); /** Get a HelpManager. * If no HelpManager already exists, a new one will be created and remembered. @@ -46,10 +45,10 @@ * @return HelpManager for <var>key</var>. */ public static HelpManager getHelp(final String key) { - HelpManager help = managers.get(key); + HelpManager help = MANAGERS.get(key); if (help == null) { help = new HelpManager(); - managers.put(key, help); + MANAGERS.put(key, help); } return help; } @@ -65,7 +64,7 @@ dialog = new JFrame(); dialog.addWindowListener(this); dialog.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); - // TODO: dialog title + // TODO:2009-02-22:christianhujer:Dialog title. helpView = new JEditorPane("text/html", ""); helpView.setEditable(false); dialog.add(new JScrollPane(helpView)); 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/InternalFrameManager.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -23,8 +23,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 $Author: chris $ - * @version $Id: InternalFrameManager.java,v 1.3 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/MenuManager.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -24,8 +24,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 $Author: chris $ - * @version $Id: MenuManager.java,v 1.3 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -46,10 +46,9 @@ /** Class for displaying a Dialog which requests that the user enters a URL or opens a File selection box. * 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 $Author: chris $ - * @version $Id: OpenURLPane.java,v 1.4 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ -public class OpenURLPane extends JComponent { +public final class OpenURLPane extends JComponent { /** Serial Version. */ private static final long serialVersionUID = 1L; @@ -70,7 +69,7 @@ gbc.gridx = 0; gbc.gridy = 1; gbc.gridwidth = 7; - gbc.fill=HORIZONTAL; + gbc.fill = HORIZONTAL; gbc.weightx = 1.0; gbc.anchor = CENTER; add(input, gbc); @@ -78,20 +77,20 @@ gbc.gridx = 7; gbc.gridy = 1; gbc.gridwidth = 1; - gbc.fill=NONE; + gbc.fill = NONE; gbc.weightx = 0.0; add(new JButton(selectFile), gbc); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 8; - gbc.fill=HORIZONTAL; + gbc.fill = HORIZONTAL; add(new JSeparator(), gbc); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; - gbc.fill=NONE; + gbc.fill = NONE; gbc.weightx = 1.0; add(new JLabel(), gbc); @@ -166,10 +165,10 @@ pane.fileChooser = fileChooser; final Window w = getWindowForComponent(parent); if (w instanceof Dialog) { - pane.dialog = new JDialog((Dialog)w, ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").getString("openURL"), true); + pane.dialog = new JDialog((Dialog) w, ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").getString("openURL"), true); } else { assert w instanceof Frame; - pane.dialog = new JDialog((Frame)w, ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").getString("openURL"), true); + pane.dialog = new JDialog((Frame) w, ActionBuilderFactory.getInstance().getActionBuilder("net.sf.japi.progs.jeduca.swing").getString("openURL"), true); } pane.dialog.add(pane); pane.dialog.pack(); @@ -233,6 +232,7 @@ public void selectFile() { final int res = fileChooser.showOpenDialog(this); if (res == JFileChooser.CANCEL_OPTION) { + // Nothing to do in case of cancel. } else if (res == JFileChooser.APPROVE_OPTION) { try { input.setText(fileChooser.getSelectedFile().toURI().toURL().toString()); 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/ToolBarManager.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -34,8 +34,7 @@ * {@link BorderLayout} in being a layout manager for containers with toolbars. * <p /> * Note: all added toolbars automatically get a popup menu for managing the toolbars. - * @author $Author: chris $ - * @version $Id: ToolBarManager.java,v 1.4 2006/01/31 23:09:18 chris Exp $ + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @see JToolBar * @see ToolBarLayout * @todo implement {@link #configureToolbars()} Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/action.properties =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/action.properties 2009-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/action.properties 2009-02-22 09:14:16 UTC (rev 1036) @@ -39,8 +39,9 @@ selectFile.icon=general/Open16 openURL=Open URL -laf.test=Look and Feels +laf.text=Look and Feels + toolbarPopup.text=Toolbar Menu toolbarPopupPos.text=Position toolbarPopupTextpos.text=Text position Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/action_de.properties =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/action_de.properties 2009-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/action_de.properties 2009-02-22 09:14:16 UTC (rev 1036) @@ -24,6 +24,7 @@ toolbars.mnemonic=S configureToolbars.text=Symbolleisten anpassen... configureToolbars.mnemonic=A + ok.text=OK ok.mnemonic=O ok.accel=ENTER @@ -35,7 +36,7 @@ delete.text=L\xF6schen delete.mnemonic=L -#selectFile.icon= +selectFile.icon=general/Open16 openURL=URL \xF6ffnen 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/AbstractCachingImporter.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -26,6 +26,8 @@ * decorates the implementation with that intelligent caching mechanism. * Subclasses cannot rely on {@link #canLoadImpl(String)} being invoked always, since if the stored information still is uptodate, calling the method * would be superfluous. + * @param <T> Type which is imported. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> * @todo enhance map access by using string pools * @todo tell clients to use string pools */ @@ -35,13 +37,17 @@ * @author $Author: chris $ * @version $Id: AbstractCachingImporter.java,v 1.1 2004/12/28 23:51:22 chris Exp $ */ - private static class Uptodate { + private static final class Uptodate { + /** Do not instantiate outside scope. */ + private Uptodate() { + } + /** Whether the file can be loaded. */ - boolean canLoad; + private boolean canLoad; /** Timestamp of file. */ - long lastModified; + private long lastModified; } // class Uptodate 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/CachingImporterAdapter.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -21,8 +21,8 @@ import org.xml.sax.SAXException; /** Adapter class to have a caching implementation of {@link Importer} where the Importer-implementation cannot extend {@link AbstractCachingImporter}. - * @author $Author: chris $ - * @version $Id: CachingImporterAdapter.java,v 1.1 2004/12/28 23:51:22 chris Exp $ + * @param <T> Type which is imported. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> */ 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-02-22 01:34:53 UTC (rev 1035) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/io/Exporter.java 2009-02-22 09:14:16 UTC (rev 1036) @@ -21,8 +21,8 @@ import java.io.IOException; /** Interface for classes that are able to export docum... [truncated message content] |
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-05-23 14:38:16
|
Revision: 1324 http://japi.svn.sourceforge.net/japi/?rev=1324&view=rev Author: christianhujer Date: 2009-05-23 14:38:13 +0000 (Sat, 23 May 2009) Log Message: ----------- Fix PMD issues. Modified Paths: -------------- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java Modified: progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java 2009-05-23 14:38:10 UTC (rev 1323) +++ progs/jeduca/trunk/src/prj/net/sf/japi/progs/jeduca/swing/OpenURLPane.java 2009-05-23 14:38:13 UTC (rev 1324) @@ -232,7 +232,7 @@ /** File Selection Action. */ public void selectFile() { final int res = fileChooser.showOpenDialog(this); - if (res == JFileChooser.CANCEL_OPTION) { + if (res == JFileChooser.CANCEL_OPTION) { // NOPMD // Nothing to do in case of cancel. } else if (res == JFileChooser.APPROVE_OPTION) { try { Modified: progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java =================================================================== --- progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java 2009-05-23 14:38:10 UTC (rev 1323) +++ progs/jeduca/trunk/src/prj/net/sf/japi/swing/LookAndFeelManager.java 2009-05-23 14:38:13 UTC (rev 1324) @@ -164,7 +164,7 @@ } /** {@inheritDoc} */ - @Override protected Object clone() throws CloneNotSupportedException { + @Override protected Object clone() throws CloneNotSupportedException { // NOPMD return super.clone(); } @@ -205,7 +205,7 @@ } /** {@inheritDoc} */ - @Override protected Object clone() throws CloneNotSupportedException { + @Override protected Object clone() throws CloneNotSupportedException { // NOPMD return super.clone(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |