Revision 7307 branches/v10/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/dissolve/gui/GeoProcessingDissolvePanel.java

View differences:

GeoProcessingDissolvePanel.java
44 44
package com.iver.cit.gvsig.geoprocess.impl.dissolve.gui;
45 45

  
46 46
import java.awt.Component;
47
import java.awt.GridBagConstraints;
48
import java.awt.GridBagLayout;
47 49
import java.awt.event.ActionEvent;
48 50
import java.awt.event.ActionListener;
49 51
import java.io.File;
......
59 61
import javax.swing.JFileChooser;
60 62
import javax.swing.JLabel;
61 63
import javax.swing.JList;
64
import javax.swing.JPanel;
62 65
import javax.swing.JScrollPane;
63
import javax.swing.JTextField;
64 66

  
65 67
import com.hardcode.gdbms.engine.data.DataSource;
66 68
import com.iver.andami.PluginServices;
......
78 80
import com.iver.cit.gvsig.geoprocess.core.gui.NumericFieldListModel;
79 81
import com.iver.cit.gvsig.geoprocess.core.gui.SumFuncListModel;
80 82
import com.iver.cit.gvsig.geoprocess.core.gui.SumarizeFunctionsDialog;
83
import com.iver.cit.gvsig.geoprocess.core.gui.NumericFieldListModel.NumericFieldListEntry;
81 84
import com.iver.utiles.GenericFileFilter;
82
import javax.swing.JPanel;
83
import java.awt.GridBagLayout;
84
import java.awt.GridBagConstraints;
85 85

  
86 86
/**
87 87
 * Panel to work with DissolveGeoprocess in Geoprocessing Wizard.
......
486 486
		sumarizeFuncDialog.setVisible(true);
487 487
		SummarizationFunction[] functions = sumarizeFuncDialog.getFunctions();
488 488

  
489
		String fieldName = (String) this.numericFieldJList.getSelectedValue();
490
		this.nField_sumFuntionList.put(fieldName, functions);
489
		NumericFieldListEntry fieldName = (NumericFieldListEntry) this.numericFieldJList.getSelectedValue();
490
		if(fieldName.getKey() != null  ){
491
			if(!fieldName.getKey().equals(""))
492
					nField_sumFuntionList.put(fieldName.getKey(), functions);
493
	    }
494
		this.nField_sumFuntionList.put(fieldName.getKey(), functions);
491 495

  
492 496
		// Hay que refrescar la lista y el listModel
493 497
		String[] numericFields = getInputLayerNumericFields();

Also available in: Unified diff