Revision 33378 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/dal/feature/swing/FeatureSelectionModel.java

View differences:

FeatureSelectionModel.java
145 145
                    throw new SelectionChangeException(ex);
146 146
                }
147 147
            } else {
148
            	FeatureSelection selection;
148
				FeatureSelection selection = getSelection();
149
				selection.beginComplexNotification();
149 150
				try {
150
					selection = this.getFeatureStore().createFeatureSelection();
151
					selection.deselectAll();
152
					for (int i = first; i <= last; i++) {
153
						selectFeatureAt(i, select, selection);
154
					}
151 155
				} catch (DataException e) {
152 156
					throw new SelectionChangeException(e);
153 157
				}
154
				for (int i = first; i <= last; i++) {
155
					selectFeatureAt(i, select, selection);
156
                }
157
				try {
158
					this.getFeatureStore().setSelection(selection);
159
				} catch (DataException e) {
160
					throw new SelectionChangeException(e);
161
				}
158
				selection.endComplexNotification();
162 159
            }
163 160
        }
164 161
    }

Also available in: Unified diff