[Schmitzm-commits] r1596 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun May 29 18:59:08 CEST 2011


Author: alfonx
Date: 2011-05-29 18:59:07 +0200 (Sun, 29 May 2011)
New Revision: 1596

Modified:
   trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/MapPaneToolBar.java
Log:
etwas mehr debug an einer komicshen stelle wegen ex report

Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/MapPaneToolBar.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/MapPaneToolBar.java	2011-05-28 20:42:30 UTC (rev 1595)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/MapPaneToolBar.java	2011-05-29 16:59:07 UTC (rev 1596)
@@ -33,6 +33,7 @@
 import java.awt.Graphics;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
+import java.net.URL;
 import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.Set;
@@ -320,11 +321,29 @@
 		addTool(new MapPaneToolBarAction(TOOL_ZOOMOUT, this,
 				XMapPaneTool.ZOOM_OUT), false);
 
+		/*
+		 * 
+java.lang.NullPointerException
+	at javax.swing.ImageIcon.<init>(Unknown Source)
+	at de.schmitzm.geotools.gui.MapPaneToolBar.initToolsAndActions(MapPaneToolBar.java:324)
+	at de.schmitzm.geotools.gui.MapPaneToolBar.init(MapPaneToolBar.java:291)
+	at de.schmitzm.geotools.gui.MapPaneToolBar.<init>(MapPaneToolBar.java:259)
+	at de.schmitzm.geotools.gui.MapView.getToolBar(MapView.java:143)
+	at org.geopublishing.atlasViewer.swing.AtlasMapView.<init>(AtlasMapView.java:148)
+	at org.geopublishing.geopublisher.gui.map.DesignMapView.<init>(DesignMapView.java:62)
+	at org.geopublishing.geopublisher.gui.map.DesignMapViewJDialog.<init>(DesignMapViewJDialog.java:368)
+	at org.geopublishing.geopublisher.gui.internal.GPDialogManager$7$1.create(GPDialogManager.java:294)
+	at org.geopublishing.geopublisher.gui.internal.GPDialogManager$7$1.create(GPDialogManager.java:276)
+	at de.schmitzm.swing.DialogManager.getInstanceFor(DialogManager.java:131)
+????
+
+		 */
 		// Action button to revert the last zoom
+		URL zoomBackResource = MapView.class
+				.getResource("resource/icons/zoom_back.png");
 		addAction(
 				new MapPaneToolBarAction(ACTION_ZOOM_BACK, this, "",
-						new ImageIcon(MapView.class
-								.getResource("resource/icons/zoom_back.png")),
+						new ImageIcon(zoomBackResource),
 						R("MapPaneButtons.LastZoom.TT")), false);
 		setButtonEnabled(ACTION_ZOOM_BACK, false);
 



More information about the Schmitzm-commits mailing list