Thread: [Japi-cvs] SF.net SVN: japi:[782] libs/swing-app/trunk/src/prj/net/sf/japi/swing/app
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2009-01-24 22:41:57
|
Revision: 782 http://japi.svn.sourceforge.net/japi/?rev=782&view=rev Author: christianhujer Date: 2009-01-24 22:41:52 +0000 (Sat, 24 Jan 2009) Log Message: ----------- i18n/l10n for the name of a new unnamed file. Modified Paths: -------------- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/action.properties Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2009-01-24 22:15:07 UTC (rev 781) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2009-01-24 22:41:52 UTC (rev 782) @@ -188,7 +188,7 @@ if (currentUri != null) { fileChooser.setSelectedFile(new File(new URI(currentUri))); } else { - fileChooser.setSelectedFile(new File("Unnamed")); // TODO:christianhujer:I18N/L10N of file name + fileChooser.setSelectedFile(new File(actionBuilder.getString("unnamedFile.name"))); } if (fileChooser.showSaveDialog(appFrame) == JFileChooser.APPROVE_OPTION) { final File file = fileChooser.getSelectedFile(); Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/action.properties =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/action.properties 2009-01-24 22:15:07 UTC (rev 781) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/action.properties 2009-01-24 22:41:52 UTC (rev 782) @@ -82,3 +82,5 @@ documentNotSaved.message={0} contains unsaved changes.\nSave before closing? documentNotSaved.title=Not saved. + +unnamedFile.name=Unnamed This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-15 12:31:30
|
Revision: 881 http://japi.svn.sourceforge.net/japi/?rev=881&view=rev Author: christianhujer Date: 2009-02-15 12:31:27 +0000 (Sun, 15 Feb 2009) Log Message: ----------- Fixed checkstyle issues. Includes change of all TODO comments into a format with date. Modified Paths: -------------- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2009-02-15 12:31:16 UTC (rev 880) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2009-02-15 12:31:27 UTC (rev 881) @@ -160,7 +160,7 @@ public void addDocument(@NotNull final Document<D> doc) { documents.add(doc); doc.addDocumentListener(this); - // TODO:christianhujer:handle frames with a menu. + // TODO:2009-02-15:christianhujer:handle frames with a menu. final DocumentFrame<D> docFrame = doc.createDocumentFrame(); docFrame.addInternalFrameListener(this); desktop.add(docFrame); @@ -242,7 +242,7 @@ final Document<D> currentDocument = this.currentDocument; if (currentDocument != null) { if (close(currentDocument)) { - // TODO:christianhujer:Finish implementation + // TODO:2009-02-15:christianhujer:Finish implementation documents.remove(currentDocument); } } @@ -303,14 +303,14 @@ */ private boolean close(@NotNull final Document<D> doc) { if (doc.hasChanged()) { - // TODO:christianhujer:Finish implementation + // TODO:2009-02-15:christianhujer:Finish implementation final int result = actionBuilder.showConfirmDialog(desktop.getSelectedFrame(), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, "documentNotSaved", doc.getTitle()); switch (result) { case JOptionPane.YES_OPTION: - // TODO:christianhujer:try saving. If that fails, cancel. + // TODO:2009-02-15:christianhujer:try saving. If that fails, cancel. break; case JOptionPane.NO_OPTION: - // TODO:christianhujer:force closing. + // TODO:2009-02-15:christianhujer:force closing. break; case JOptionPane.CANCEL_OPTION: return false; @@ -336,7 +336,7 @@ while (iterator.hasNext()) { final Document<D> doc = iterator.next(); if (close(doc)) { - // TODO:christianhujer:Finish implementation + // TODO:2009-02-15:christianhujer:Finish implementation iterator.remove(); } } @@ -345,7 +345,7 @@ /** Action Quit. */ @ActionMethod public void fileQuit() { - // TODO:christianhujer:This should ask about each document with unsaved changes. + // TODO:2009-02-15:christianhujer:This should ask about each document with unsaved changes. if (!isUserPermissionForQuitRequired() || isQuitAllowedByUser()) { appFrame.dispose(); } @@ -381,7 +381,7 @@ * @return <code>true</code> if one or more documents have unsaved changes, <code>false</code> if all changes are saved. */ public boolean hasUnsavedChanges() { - // TODO:christianhujer:Finish implementation. + // TODO:2009-02-15:christianhujer:Finish implementation. return true; } Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java 2009-02-15 12:31:16 UTC (rev 880) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java 2009-02-15 12:31:27 UTC (rev 881) @@ -51,7 +51,7 @@ @Nullable private String uri; /** The title of this document. */ - // TODO:christianhujer:@Nullable or @NotNull + // TODO:2009-02-15:christianhujer:@Nullable or @NotNull private String title; /** The changed state of this document. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-15 13:29:02
|
Revision: 893 http://japi.svn.sourceforge.net/japi/?rev=893&view=rev Author: christianhujer Date: 2009-02-15 13:28:59 +0000 (Sun, 15 Feb 2009) Log Message: ----------- Fixed several javadoc issues. Modified Paths: -------------- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/TryApplication.java Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java 2009-02-15 13:28:41 UTC (rev 892) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java 2009-02-15 13:28:59 UTC (rev 893) @@ -38,23 +38,35 @@ /** Serial version. */ private static final long serialVersionUID = 1L; - /** The frames of this document. */ + /** The frames of this document. + * @serial include + */ private final List<DocumentFrame<D>> frames = new ArrayList<DocumentFrame<D>>(); - /** The Event Listeners. */ + /** The Event Listeners. + * @serial include + */ private final EventListenerList listenerList = new EventListenerList(); - /** The data of this Document. */ + /** The data of this Document. + * @serial include + */ @NotNull private final D data; - /** The URI of this document. */ + /** The URI of this document. + * @serial include + */ @Nullable private String uri; - /** The title of this document. */ + /** The title of this document. + * @serial include + */ // TODO:2009-02-15:christianhujer:@Nullable or @NotNull private String title; - /** The changed state of this document. */ + /** The changed state of this document. + * @serial include + */ private boolean changed = false; /** Creates a Document. Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java 2009-02-15 13:28:41 UTC (rev 892) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java 2009-02-15 13:28:59 UTC (rev 893) @@ -30,10 +30,14 @@ /** Serial version. */ private static final long serialVersionUID = 1L; - /** The type of this event. */ + /** The type of this event. + * @serial include + */ @NotNull private final DocumentEventType type; - /** The source of this event. */ + /** The source of this event. + * @serial include + */ private final Document<D> source; /** Constructs a DocumentEvent. Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/TryApplication.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/TryApplication.java 2009-02-15 13:28:41 UTC (rev 892) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/TryApplication.java 2009-02-15 13:28:59 UTC (rev 893) @@ -42,7 +42,7 @@ return null; //To change body of implemented methods use File | Settings | File Templates. } - /** {@inheritDoc} */ + /** Document of this TryApplication. */ public class Document extends Application.Document { /** {@inheritDoc} */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-03-02 01:20:37
|
Revision: 1225 http://japi.svn.sourceforge.net/japi/?rev=1225&view=rev Author: christianhujer Date: 2009-03-02 01:20:32 +0000 (Mon, 02 Mar 2009) Log Message: ----------- Add @since information for classes and packages. Modified Paths: -------------- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/AppLaunchCommand.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/ApplicationQuitter.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/CanLoad.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEventType.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentFrame.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentListener.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/Application.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/TryApplication.java libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/package-info.java Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/AppLaunchCommand.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/AppLaunchCommand.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/AppLaunchCommand.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -26,6 +26,7 @@ /** Command for launching a GUI application. * If the application does not need additional command line parameters, this class is sufficient and needn't be subclassed. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class AppLaunchCommand extends CommandWithHelp { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Application.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -54,6 +54,7 @@ /** Base class for applications. * @param <D> The document type that is managed by this application. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public abstract class Application<D> implements CanLoad<D>, InternalFrameListener, DocumentListener<D> { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/ApplicationQuitter.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/ApplicationQuitter.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/ApplicationQuitter.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -23,8 +23,9 @@ import org.jetbrains.annotations.NotNull; /** Quits an application when its window is closing. + * @param <D> The document type that is managed by the application. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> - * @param <D> The document type that is managed by the application. + * @since 0.1 */ class ApplicationQuitter<D> extends WindowAdapter { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/CanLoad.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/CanLoad.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/CanLoad.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -23,6 +23,7 @@ /** Interface to be implemented by classes that are able to load a URL. * @param <D> The document type that can be loaded. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public interface CanLoad<D> { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/Document.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -32,6 +32,7 @@ * In a spread sheet, it would be the spread sheet file. * @param <D> The document type that is managed by the application. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public abstract class Document<D> implements Serializable { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEvent.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -24,6 +24,7 @@ /** A DocumentEvent describes notable changes to a {@link Document}. * @param <D> The document type that is managed by the application. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class DocumentEvent<D> extends EventObject { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEventType.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEventType.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentEventType.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -20,6 +20,7 @@ /** Type for {@link DocumentEvent}s. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public enum DocumentEventType { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentFrame.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentFrame.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentFrame.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -29,6 +29,7 @@ /** Internal Frame for a document. * @param <D> The document type that is managed by the application. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ class DocumentFrame<D> extends JInternalFrame { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentListener.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentListener.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/DocumentListener.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -29,6 +29,7 @@ * a program registers a {@link DocumentListener}. * @param <D> The document type that is managed by the application. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public interface DocumentListener<D> extends EventListener { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/Application.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/Application.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/Application.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -24,6 +24,7 @@ /** The Application from a script's view. * @param <D> The document type that is managed by the application. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public abstract class Application<D> { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/TryApplication.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/TryApplication.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/TryApplication.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -22,8 +22,10 @@ import org.jetbrains.annotations.NotNull; /** - * TODO + * Temporary test class. + * @deprecated Do not use, this is just a temporary test class. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ public class TryApplication extends Application { Modified: libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/package-info.java =================================================================== --- libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/package-info.java 2009-03-02 01:19:50 UTC (rev 1224) +++ libs/swing-app/trunk/src/prj/net/sf/japi/swing/app/script/package-info.java 2009-03-02 01:20:32 UTC (rev 1225) @@ -18,5 +18,6 @@ /** This package contains the fundamental bindings for scripting applications. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @since 0.1 */ package net.sf.japi.swing.app.script; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |