Revision 22932 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/TableNumericFieldOperations.java

View differences:

TableNumericFieldOperations.java
66 66
		int numRows=0;
67 67
		FeatureStore fs=null;
68 68
//		try {
69
			fs = table.getModel().getModelo();
69
			fs = table.getModel().getModel();
70 70
//		} catch (ReadException e) {
71 71
//			e.printStackTrace();
72 72
//		}
......
224 224
		if (indices.cardinality() == 1){
225 225
//			try {
226 226
				int index=indices.nextSetBit(0);
227
				if (table.getModel().getModelo().getDefaultFeatureType().size()<index+1)
227
				if (table.getModel().getModel().getDefaultFeatureType().size()<index+1)
228 228
					return false;
229
				String type = ((FeatureAttributeDescriptor)table.getModel().getModelo().getDefaultFeatureType().get(index)).getDataType();
229
				String type = ((FeatureAttributeDescriptor)table.getModel().getModel().getDefaultFeatureType().get(index)).getDataType();
230 230
				if ((type.equals(FeatureAttributeDescriptor.TYPE_LONG)) ||
231 231
						(type.equals(FeatureAttributeDescriptor.TYPE_DOUBLE)) ||
232 232
								(type.equals(FeatureAttributeDescriptor.TYPE_FLOAT)) ||

Also available in: Unified diff