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/colortable/ui/ColorTableListener.java

View differences:

ColorTableListener.java
42 42
import org.gvsig.fmap.dal.coverage.util.PropertyListener;
43 43
import org.gvsig.gui.beans.imagenavigator.ImageUnavailableException;
44 44
import org.gvsig.raster.fmap.layers.FLyrRaster;
45
import org.gvsig.raster.swing.RasterSwingLibrary;
45 46
import org.gvsig.raster.swing.preview.DataSourcePreview;
46 47
import org.gvsig.raster.swing.preview.PreviewRenderProcess;
47 48
import org.gvsig.raster.tools.app.basic.RasterToolsUtil;
......
97 98
			try {
98 99
				previewLayer = (FLyrRaster) fLayer.cloneLayer();
99 100
			} catch (Exception e) {
100
				RasterToolsUtil.messageBoxError("preview_not_available", colorTablePanel, e);
101
				RasterSwingLibrary.messageBoxError("preview_not_available", colorTablePanel, e);
101 102
			}
102 103
		}
103 104
	}
......
161 162
			getColorTablePanel().getLayer().getMapContext().invalidate();
162 163
			tableLib.save_to_1_1(ColorTableLibraryPanel.palettesPath, getColorTableData().getColorTable());
163 164
		} catch (FilterTypeException e) {
164
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
165
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
165 166
		} catch (FilterManagerException e) {
166
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
167
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
167 168
		}
168 169
	}
169 170

  
......
363 364
			FLyrRaster lyr = (FLyrRaster)rendering.getSource();
364 365
			applyColorTable(lyr, true);
365 366
		} catch (FilterTypeException e1) {
366
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e1);
367
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e1);
367 368
		} catch (FilterManagerException e) {
368
			RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
369
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
369 370
		}
370 371
	}
371 372
	

Also available in: Unified diff