Revision 2340 org.gvsig.raster.tools/branches/org.gvsig.raster.tools_dataaccess_refactoring/org.gvsig.raster.tools.app.basic/src/main/java/org/gvsig/raster/tools/app/basic/tool/histogram/HistogramPanelListener.java

View differences:

HistogramPanelListener.java
58 58
import org.gvsig.gui.beans.graphic.GraphicEvent;
59 59
import org.gvsig.gui.beans.graphic.GraphicListener;
60 60
import org.gvsig.raster.fmap.layers.FLyrRaster;
61
import org.gvsig.raster.swing.RasterSwingLibrary;
61 62
import org.gvsig.raster.tools.app.basic.RasterToolsUtil;
62 63
import org.gvsig.raster.tools.app.basic.raster.process.HistogramProcess;
63 64
import org.gvsig.raster.tools.app.basic.raster.process.IProcessActions;
......
201 202
					try {
202 203
						((ArrayList) comboSource.get(i)).add(0, ((FLyrRaster) lyr).getRender().getLastRenderBuffer().getHistogramComputer());
203 204
					} catch (QueryException e1) {
204
						RasterToolsUtil.messageBoxError("histogram_error", getHistogramPanel(), e1);
205
						RasterSwingLibrary.messageBoxError("histogram_error", getHistogramPanel(), e1);
205 206
					} catch (ProcessInterruptedException e1) {
206 207
					}
207 208

  
......
365 366
				else
366 367
					setNewHistogram(null);
367 368
			} catch (HistogramException e) {
368
				RasterToolsUtil.messageBoxError("histogram_error", getHistogramPanel(), e);
369
				RasterSwingLibrary.messageBoxError("histogram_error", getHistogramPanel(), e);
369 370
				return;
370 371
			} catch (ProcessInterruptedException e) {
371 372
				
......
466 467
					newHistogram[numBand][j - first][0] = datos[iBand][j][0];
467 468
					newHistogram[numBand][j - first][1] = datos[iBand][j][1];
468 469
				} catch (ArrayIndexOutOfBoundsException e) {
469
					RasterToolsUtil.messageBoxError("Error al crear el array del histograma. DataType: " + getHistogramPanel().getDataType() + " Posici?n: " + j, this, e);
470
					RasterSwingLibrary.messageBoxError("Error al crear el array del histograma. DataType: " + getHistogramPanel().getDataType() + " Posici?n: " + j, this, e);
470 471
				}
471 472
			}
472 473
			bandNames[numBand] = (String) ((DefaultTableModel) getHistogramPanel().getJTableBands().getModel()).getValueAt(iBand, 1);

Also available in: Unified diff