[Schmitzm-commits] r2344 - in trunk/schmitzm-core/src/main/java/de/schmitzm: . swing

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Mon Jun 10 16:20:16 CEST 2013


Author: mojays
Date: 2013-06-10 16:20:15 +0200 (Mon, 10 Jun 2013)
New Revision: 2344

Added:
   trunk/schmitzm-core/src/main/java/de/schmitzm/ConstantsMartinSchmitz.java
Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/AboutDialogMartinSchmitz.java
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SwingUtil.java
Log:
new class ConstantsMartinSchmitz

Added: trunk/schmitzm-core/src/main/java/de/schmitzm/ConstantsMartinSchmitz.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/ConstantsMartinSchmitz.java	                        (rev 0)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/ConstantsMartinSchmitz.java	2013-06-10 14:20:15 UTC (rev 2344)
@@ -0,0 +1,63 @@
+/**
+ * Copyright (c) 2009 Martin O. J. Schmitz.
+ * 
+ * This file is part of the SCHMITZM library - a collection of utility 
+ * classes based on Java 1.6, focusing (not only) on Java Swing 
+ * and the Geotools library.
+ * 
+ * The SCHMITZM project is hosted at:
+ * http://wald.intevation.org/projects/schmitzm/
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public License (license.txt)
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ * or try this link: http://www.gnu.org/licenses/lgpl.html
+ * 
+ * Contributors:
+ *     Martin O. J. Schmitz - initial API and implementation
+ *     Stefan A. Tzeggai - additional utility classes
+ */
+package de.schmitzm;
+
+import javax.swing.ImageIcon;
+
+import de.schmitzm.swing.ExceptionDialog;
+import de.schmitzm.swing.SwingUtil;
+
+/**
+ * Constants especially for the developer Martin Schmitz.
+ * @author Martin O.J. Schmitz
+ */
+public class ConstantsMartinSchmitz {
+  /** Developer name */
+  public static final String DEVELOPER_NAME = "Martin Schmitz";
+  /** Developer icon of Martin Schmitz */ 
+  public static final ImageIcon ICON_MARTIN_SCHMITZ_IT = SwingUtil.createImageIconFromResourcePath(SwingUtil.class, "resource/images/martin-schmitz.png", null);
+
+  /** Contact website. */
+  public static final String CONTACT_WEBSITE = "http://www.martin-schmitz-it.de";
+  /** Contact mail address. */
+  public static final String CONTACT_MAIL = "contact at martin-schmitz-it.de";
+  /** Mail address for exception mails (see {@link ExceptionDialog}). */
+  public static final String EXCEPTION_MAIL = "bug.report at martin-schmitz-it.de";
+  
+  /** Base URL of SCHMITZM library SVN. */
+  public static final String SCHMITZM_SVN_URL_BASE = "https://scm.wald.intevation.org/svn/schmitzm/";
+  
+  /** Base URL of SCHMITZM applications SVN. */
+  public static final String APPL_SVN_URL_BASE = "https://svn.wikisquare.de/ms/";
+  /** User name to access SCHMITZM applications SVN (anonymous/read-only). */
+  public static final String APPL_SVN_PUBLIC_USER = "andreas.enders"; // TODO
+  /** User name to access SCHMITZM applications SVN (anonymous/read-only). */
+  public static final String APPL_SVN_PUBLIC_PW = "2.6.32-47-server"; // TODO
+}

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/AboutDialogMartinSchmitz.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/AboutDialogMartinSchmitz.java	2013-06-10 11:22:54 UTC (rev 2343)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/AboutDialogMartinSchmitz.java	2013-06-10 14:20:15 UTC (rev 2344)
@@ -35,6 +35,8 @@
 
 import javax.swing.JLabel;
 
+import de.schmitzm.ConstantsMartinSchmitz;
+
 /**
  * Application information dialog ("About"), especially for applications developed
  * by Martin Schmitz.
@@ -61,7 +63,7 @@
   public void init() {
     super.init();
     
-    this.companyLabel = new JLabel(SwingUtil.ICON_MARTIN_SCHMITZ);
+    this.companyLabel = new JLabel(ConstantsMartinSchmitz.ICON_MARTIN_SCHMITZ_IT);
     companyLabel.setHorizontalAlignment(JLabel.LEFT);
 
     this.developerLabel = new JLabel("created by:  ");

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SwingUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SwingUtil.java	2013-06-10 11:22:54 UTC (rev 2343)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SwingUtil.java	2013-06-10 14:20:15 UTC (rev 2344)
@@ -287,9 +287,6 @@
     /** Icon of default checkbox with state disabled and unchecked */
     public static final ImageIcon ICON_CHECKBOX_DISABLED_UNCHECKED = SwingUtil.createImageIconFromResourcePath(SwingUtil.class, "resource/icons/checkbox/disabled_unchecked.png", null);
 	
-    /** Developer icon of Martin Schmitz */ 
-    public static final ImageIcon ICON_MARTIN_SCHMITZ = SwingUtil.createImageIconFromResourcePath(SwingUtil.class, "resource/images/martin-schmitz.png", null);
-    
 	/**
 	 * Modus "Innen".
 	 * 



More information about the Schmitzm-commits mailing list