Revision 16568

View differences:

trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/classification/ClassificationGeneralProcess.java
71 71
import org.gvsig.raster.hierarchy.IRasterRendering;
72 72
import org.gvsig.raster.process.CancelEvent;
73 73
import org.gvsig.raster.process.RasterTask;
74
import org.gvsig.raster.util.RasterToolsUtil;
74 75
import org.gvsig.rastertools.clipping.WriterBufferServer;
75 76

  
76 77
import com.iver.andami.PluginServices;
......
207 208
			bufferFactory.setAreaOfInterest();
208 209
			bufferFactory.setAllDrawableBands();
209 210
			inputGrid = new Grid(bufferFactory,bandList);		
210
		} catch (RasterBufferInvalidException e) {
211
			e.printStackTrace();
212
		} catch (InterruptedException e1) {
213
			e1.printStackTrace();
214
		}	
211
		}catch (RasterBufferInvalidException e) {
212
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "raster_buffer_invalid_extension"), this, e);
213
		}catch (InterruptedException e1) {
214
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_preview_stop"), this, e1);
215
		}
215 216
	}
216 217
		
217 218
	/**
......
244 245
				incrementableTask.processFinalize();
245 246
		
246 247
		} catch (NotSupportedExtensionException e) {
247
			e.printStackTrace();
248
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_writer_notsupportedextension"), this, e);
248 249
		} catch (RasterDriverException e) {
249
			e.printStackTrace();	
250
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_writer"), this, e);	
250 251
		} catch (IOException e) {
251
			e.printStackTrace();
252
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_writer"), this, e);
252 253
		}catch (LoadLayerException e) {
253
			e.printStackTrace();
254
			RasterToolsUtil.messageBoxError("error_cargar_capa", this, e);
254 255
		}catch (InterruptedException e) {
255 256
			Thread.currentThread().interrupt();
256 257
		}	

Also available in: Unified diff