From e9a62ee6a7bfaed6fecbf4d483e64875c3da6ecf Mon Sep 17 00:00:00 2001 From: codistmonk Date: Mon, 3 Sep 2012 21:11:43 +0000 Subject: [PATCH] [Aprog] Updated Ant script; added package-info file; added Version annotation; removed a warning in ShowAboutDialogAction. git-svn-id: https://aprog.svn.sourceforge.net/svnroot/aprog/trunk@192 7cbf5e2b-b55d-4b93-acdd-c0d7b961df51 --- Aprog/aprog.xml | 2 +- .../aprog/af/ShowAboutDialogAction.java | 2 -- Aprog/src/net/sourceforge/aprog/package-info.java | 29 ++++++++++++++++++++++ Aprog/src/net/sourceforge/aprog/tools/Version.java | 16 ++++++++++++ 4 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 Aprog/src/net/sourceforge/aprog/package-info.java create mode 100644 Aprog/src/net/sourceforge/aprog/tools/Version.java diff --git a/Aprog/aprog.xml b/Aprog/aprog.xml index 74c4291..f96aa0e 100644 --- a/Aprog/aprog.xml +++ b/Aprog/aprog.xml @@ -3,7 +3,7 @@ - + diff --git a/Aprog/src/net/sourceforge/aprog/af/ShowAboutDialogAction.java b/Aprog/src/net/sourceforge/aprog/af/ShowAboutDialogAction.java index 3a58abc..c98f07c 100644 --- a/Aprog/src/net/sourceforge/aprog/af/ShowAboutDialogAction.java +++ b/Aprog/src/net/sourceforge/aprog/af/ShowAboutDialogAction.java @@ -68,6 +68,4 @@ public final class ShowAboutDialogAction extends AbstractAFAction { iconPath == null ? null : SwingTools.getIcon(context.get(APPLICATION_ICON_PATH).toString())); } - private static final long serialVersionUID = -3499809378583050478L; - } diff --git a/Aprog/src/net/sourceforge/aprog/package-info.java b/Aprog/src/net/sourceforge/aprog/package-info.java new file mode 100644 index 0000000..8890005 --- /dev/null +++ b/Aprog/src/net/sourceforge/aprog/package-info.java @@ -0,0 +1,29 @@ +/* + * The MIT License + * + * Copyright 2010 Codist Monk. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +/** + * @author codistmonk (creation 2010) + */ +@net.sourceforge.aprog.tools.Version("1.0.0") +package net.sourceforge.aprog; \ No newline at end of file diff --git a/Aprog/src/net/sourceforge/aprog/tools/Version.java b/Aprog/src/net/sourceforge/aprog/tools/Version.java new file mode 100644 index 0000000..772a88f --- /dev/null +++ b/Aprog/src/net/sourceforge/aprog/tools/Version.java @@ -0,0 +1,16 @@ +package net.sourceforge.aprog.tools; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +/** + * @author codistmonk (creation 2012-09-03) + */ +@Documented +@Retention(RetentionPolicy.RUNTIME) +public @interface Version { + + public abstract String value(); + +} -- 2.11.4.GIT