* @see org.locationtech.udig.project.internal.command.MapCommand#run()
*/
@SuppressWarnings("deprecation")
public void run( IProgressMonitor monitor ) throws Exception {
monitor.beginTask(Messages.WriteFeatureChangesCommand_runTask, 3);
SubProgressMonitor subProgressMonitor = new SubProgressMonitor(monitor,1);
editFeature = featureProvider.get(subProgressMonitor);
subProgressMonitor.done();
store = storeProvider.get(subProgressMonitor);
if( editFeature==null || store==null ){
noChange=true;
return;
}
SimpleFeatureType featureType = editFeature.getFeatureType();
FilterFactory factory = CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints());
subProgressMonitor = new SubProgressMonitor(monitor,1);
subProgressMonitor.done();
filter = factory.id(FeatureUtils.stringToId(factory, editFeature.getID()));
FeatureCollection<SimpleFeatureType, SimpleFeature> results = store.getFeatures(filter);
FeatureIterator<SimpleFeature> reader = results.features();
try {