Revision 22932 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/table/gui/tablemodel/DataSourceDataModel.java

View differences:

DataSourceDataModel.java
41 41
        	hasAssociatedLayer=true;
42 42
        }
43 43
        try {
44
			featureCollection=(FeatureCollection)pt.getModelo().getDataCollection(pt.getModelo().getDefaultFeatureType(),null,order);
44
			featureCollection=(FeatureCollection)pt.getModel().getDataCollection(pt.getModel().getDefaultFeatureType(),null,order);
45 45
		} catch (ReadException e) {
46 46
			// TODO Auto-generated catch block
47 47
			e.printStackTrace();
......
88 88
     */
89 89
    public int getRowCount() {
90 90
        try {
91
        	FeatureStore fs = pt.getModelo();
91
        	FeatureStore fs = pt.getModel();
92 92
            return ((FeatureCollection)fs.getDataCollection()).size();
93 93
        } catch (ReadException e) {
94 94
            return 0;
......
187 187
//		} catch (ReadDriverException e) {
188 188
//			e.printStackTrace();
189 189
//		}
190
    	return pt.getModelo().isEditing();
190
    	return pt.getModel().isEditing();
191 191
    }
192 192

  
193 193
    /**
......
213 213
    	if (getValueAt(rowIndex,columnIndex)==null || getValueAt(rowIndex,columnIndex).toString().equals(aValue))
214 214
        	return;
215 215
        try {
216
        	FeatureStore fs = pt.getModelo();
216
        	FeatureStore fs = pt.getModel();
217 217
//        	try{
218 218
//        	v = ValueFactory.createValueByType(aValue.toString(),
219 219
//                    des.getRecordset().getFieldType(columnIndex));

Also available in: Unified diff