[Japi-cvs] SF.net SVN: japi:[881] libs/swing-app/trunk/src/prj/net/sf/japi/swing/app
Status: Beta
Brought to you by:
christianhujer
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. |