[Schmitzm-commits] r470 - in branches/1.0-gt2-2.6/src/skrueger: . swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 14 18:20:27 CEST 2009


Author: alfonx
Date: 2009-10-14 18:20:26 +0200 (Wed, 14 Oct 2009)
New Revision: 470

Modified:
   branches/1.0-gt2-2.6/src/skrueger/AttributeMetadata.java
   branches/1.0-gt2-2.6/src/skrueger/swing/DialogManager.java
Log:
* AV-Bugfix: Closing related dialogs when a layer is removed form the legend

Modified: branches/1.0-gt2-2.6/src/skrueger/AttributeMetadata.java
===================================================================
--- branches/1.0-gt2-2.6/src/skrueger/AttributeMetadata.java	2009-10-14 11:24:03 UTC (rev 469)
+++ branches/1.0-gt2-2.6/src/skrueger/AttributeMetadata.java	2009-10-14 16:20:26 UTC (rev 470)
@@ -53,7 +53,7 @@
 	protected boolean visible = true;
 	protected String unit = "";
 	protected int colIdx;
-	private org.opengis.feature.type.Name name;
+	private Name name;
 
 	/**
 	 * Creates an {@link AttributeMetadata} object with the following

Modified: branches/1.0-gt2-2.6/src/skrueger/swing/DialogManager.java
===================================================================
--- branches/1.0-gt2-2.6/src/skrueger/swing/DialogManager.java	2009-10-14 11:24:03 UTC (rev 469)
+++ branches/1.0-gt2-2.6/src/skrueger/swing/DialogManager.java	2009-10-14 16:20:26 UTC (rev 470)
@@ -78,13 +78,13 @@
 		}
 	}
 
-	public boolean disposeInstanceFor(KEY chartId) {
+	public boolean disposeInstanceFor(KEY key) {
 		synchronized (dialogCache) {
 
-			final DIALOG dialog = dialogCache.get(chartId);
+			final DIALOG dialog = dialogCache.get(key);
 			if (dialog != null) {
 				dialog.dispose();
-				dialogCache.remove(chartId);
+				dialogCache.remove(key);
 				return true;
 			}
 			return false;



More information about the Schmitzm-commits mailing list