Revision 47752 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/actions/ReportUtils.java

View differences:

ReportUtils.java
17 17
import org.apache.commons.io.IOUtils;
18 18
import org.apache.commons.lang3.StringUtils;
19 19
import org.gvsig.fmap.dal.DataStore;
20
import org.gvsig.fmap.dal.feature.FeatureSelection;
20 21
import org.gvsig.fmap.dal.feature.FeatureStore;
21 22
import org.gvsig.fmap.dal.swing.DALActionFactory;
22 23
import org.gvsig.fmap.dal.swing.DALSwingLocator;
......
85 86
        List<ReportAction> actions = new ArrayList<>();
86 87
        List<JsonObject> reports = getReports((FeatureStore) store);
87 88
        if (reports != null && !reports.isEmpty()) {
89
            FeatureSelection selecteds = null;
90
            if(context == null){
91
                selecteds = context.getSelecteds();
92
            }
88 93
            for (JsonObject json : reports) {
89 94
                if(filter == null || filter.test(json)){
90 95
                    ReportAction action = null;
......
101 106
                                action = theFactory.createReportAction(
102 107
                                        (FeatureStore) store,
103 108
                                        context.getQuery(),
104
                                        context.getSelecteds(),
109
                                        selecteds,
105 110
                                        json
106 111
                                );
107 112
                            }

Also available in: Unified diff