[Schmitzm-commits] r1278 - in trunk/src: org/geopublishing/atlasViewer/swing schmitzm/swing/resource/locales

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 16 14:51:16 CET 2010


Author: alfonx
Date: 2010-11-16 14:51:15 +0100 (Tue, 16 Nov 2010)
New Revision: 1278

Modified:
   trunk/src/org/geopublishing/atlasViewer/swing/AtlasFeatureLayerFilterDialog.java
   trunk/src/schmitzm/swing/resource/locales/SwingResourceBundle.properties
Log:


Modified: trunk/src/org/geopublishing/atlasViewer/swing/AtlasFeatureLayerFilterDialog.java
===================================================================
--- trunk/src/org/geopublishing/atlasViewer/swing/AtlasFeatureLayerFilterDialog.java	2010-11-16 13:43:51 UTC (rev 1277)
+++ trunk/src/org/geopublishing/atlasViewer/swing/AtlasFeatureLayerFilterDialog.java	2010-11-16 13:51:15 UTC (rev 1278)
@@ -102,19 +102,6 @@
 		this.attrMetaDataMap = styledFeatures.getAttributeMetaDataMap();
 		this.styedFeatures = styledFeatures;
 
-		// make a check on howmany feateurs we have an print a warning if too
-		// many
-		int numCells = styledFeatures.getFeatureCollectionFiltered().size()
-				* styledFeatures.getAttributeMetaDataMap()
-						.sortedValuesVisibleOnly().size();
-		if (numCells > WARN_CELLS) {
-			if (SwingUtil.askYesNo(parent, SwingUtil.R(
-					"AttributeTable.dialog.warnToManyCells", numCells)) == false) {
-				dispose();
-				return;
-			}
-		}
-
 		if (!styledFeatures.getFilter().equals(Filter.INCLUDE)) {
 			setFilterRule(CQL.toCQL(styledFeatures.getFilter()));
 		}
@@ -170,7 +157,6 @@
 
 				@Override
 				protected void initGUI() {
-
 					super.initGUI();
 
 					// Changing a few things to get the AttributeMetaData into

Modified: trunk/src/schmitzm/swing/resource/locales/SwingResourceBundle.properties
===================================================================
--- trunk/src/schmitzm/swing/resource/locales/SwingResourceBundle.properties	2010-11-16 13:43:51 UTC (rev 1277)
+++ trunk/src/schmitzm/swing/resource/locales/SwingResourceBundle.properties	2010-11-16 13:51:15 UTC (rev 1278)
@@ -260,4 +260,4 @@
 
 
 GeneralQuestionDialogTitle=Question
-AttributeTable.dialog.warnToManyCells=<html>The table will contain ${0} cells and consume a lot of memory. The atlas might get slow.<br/>Are you sure you want to open the attribute table?</html>
\ No newline at end of file
+AttributeTable.dialog.warnToManyCells=<html>The table will contain ${0} cells and consume a lot of memory. The atlas might get slow.<br/>Are you sure you want to open the attribute table?</html>



More information about the Schmitzm-commits mailing list