Revision 44400 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretable/SimpleFeaturesTableModel.java

View differences:

SimpleFeaturesTableModel.java
11 11
import org.gvsig.fmap.dal.feature.FeatureStore;
12 12
import org.gvsig.fmap.dal.feature.FeatureType;
13 13
import org.gvsig.tools.ToolsLocator;
14
import org.gvsig.tools.logger.FilteredLogger;
14 15
import org.gvsig.tools.util.UnmodifiableBasicList;
16
import org.slf4j.Logger;
17
import org.slf4j.LoggerFactory;
15 18

  
16 19
/**
17 20
 *
......
21 24
        extends AbstractTableModel
22 25
        implements UnmodifiableBasicList<Feature> {
23 26

  
27
        private static final Logger LOGGER = LoggerFactory.getLogger(SimpleFeaturesTableModel.class);
28
    
24 29
        private final List<Feature> features;
25 30
        private final List<String> columnNames;
26 31
        private final FeatureType featureType;
32
        private FilteredLogger logger;
27 33

  
28 34
        public SimpleFeaturesTableModel(FeatureStore store) throws DataException {
29 35
            this(store.getDefaultFeatureType(), null, store.getFeatures());
......
31 37
        
32 38
        public SimpleFeaturesTableModel(FeatureType featureType) {
33 39
            this(featureType, null, null);
40
            this.logger = new FilteredLogger(LOGGER, "SimpleFeaturesTableModel", 10);
34 41
        }
35 42
        
36 43
        public SimpleFeaturesTableModel(FeatureType featureType, List<String> columnNames, List<Feature> features) {
44
            this.logger = new FilteredLogger(LOGGER, "SimpleFeaturesTableModel", 10);
37 45
            this.features = features;
38 46
            this.featureType = featureType;
39 47
            if (columnNames == null || columnNames.isEmpty()) {
......
135 143
                }
136 144
                return value;
137 145
            } catch (Throwable th) {
146
                logger.warn("Can't get cell value at "+rowIndex+", "+columnIndex+".", th);
138 147
                return null;
139 148
            }
140 149
        }

Also available in: Unified diff