Revision 1129 org.gvsig.raster.tilecache/trunk/org.gvsig.raster.tilecache/org.gvsig.raster.tilecache.app/src/main/java/org/gvsig/raster/tilecache/app/TileCachePreferencesPanel.java

View differences:

TileCachePreferencesPanel.java
326 326
	 * Guarda los valores de la cache establecidos por el usuario
327 327
	 */
328 328
	public void storeValues() {
329
		Configuration.setValue("tilecache_size", getTextFieldCacheSize().getText());
330
		Configuration.setValue("tilesize", getTextFieldTileSize().getText());
331
		Configuration.setValue("tile_levels", getTextFieldLevels().getText());
329
		Integer tilecachesize = null;
330
		try {
331
			String s = getTextFieldCacheSize().getText().replaceAll(",", "");
332
			tilecachesize = new Integer(s);
333
			Configuration.setValue("tilecache_size", tilecachesize);
334
		} catch (NumberFormatException e)  {
335
			
336
		}
337
		
338
		Integer tilesize = null;
339
		try {
340
			String s = getTextFieldTileSize().getText().replaceAll(",", "");
341
			tilesize = new Integer(s);
342
			Configuration.setValue("tilesize", tilesize);
343
		} catch (NumberFormatException e)  {
344
			
345
		}
346
		
347
		Integer tilelevels = null;
348
		try {
349
			String s = getTextFieldLevels().getText().replaceAll(",", "");
350
			tilelevels = new Integer(s);
351
			Configuration.setValue("tile_levels", tilelevels);
352
		} catch (NumberFormatException e)  {
353
			
354
		}
355
		
332 356
		Configuration.setValue("cache_struct", getComboBoxStruct().getSelectedItem() != null ? getComboBoxStruct().getSelectedItem().toString() : TileCacheLibrary.DEFAULT_STRUCTURE);
333 357
		Configuration.setValue("path_tilecache", getTextFieldPath().getText());
334 358
	}

Also available in: Unified diff