Revision 22477 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/VectorialUniqueValue.java

View differences:

VectorialUniqueValue.java
196 196
//            logger.debug("elRs.start()");
197 197
//            elRs.start();
198 198

  
199
            int idField = -1;
199
//            int idField = -1;
200 200
            String fieldName = (String) cmbFields.getSelectedItem();
201 201
            if (fieldName==null) {
202 202
            	JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),PluginServices.getText(this,"no_hay_campo_seleccionado"));
......
237 237
            Iterator iterator=elRs.getDataCollection().iterator();
238 238
            while (iterator.hasNext()) {
239 239
				Feature feature = (Feature) iterator.next();
240
				feature.get(fieldName);
240
				clave = feature.get(fieldName);
241 241
//			}
242 242
//            for (int j = 0; j < elRs.getRowCount(); j++) {
243 243
//                clave = elRs.getFieldValue(j, idField);
......
345 345
            Iterator iterator=rs.getDefaultFeatureType().iterator();
346 346
            while (iterator.hasNext()) {
347 347
				FeatureAttributeDescriptor descriptor = (FeatureAttributeDescriptor) iterator.next();
348
				names.add(descriptor.getDataType());
348
				names.add(descriptor.getName());
349 349
			}
350 350
//            String[] nomFields = new String[rs.getFieldCount()];
351 351
//

Also available in: Unified diff