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/library/ColorTableLibraryPanel.java

View differences:

ColorTableLibraryPanel.java
51 51
import org.gvsig.gui.beans.listview.ListViewComponent;
52 52
import org.gvsig.gui.beans.listview.ListViewItem;
53 53
import org.gvsig.gui.beans.listview.ListViewListener;
54
import org.gvsig.raster.tools.app.basic.RasterToolsUtil;
54
import org.gvsig.raster.swing.RasterSwingLibrary;
55 55
import org.gvsig.raster.tools.app.basic.tool.colortable.data.ColorTableData;
56 56
import org.gvsig.raster.util.BasePanel;
57 57
import org.gvsig.raster.util.ExtendedFileFilter;
......
149 149
			getListViewComponent().setSelectedIndex(0);
150 150
			callColorTableChanged();
151 151
		} catch (FilePaletteException e) {
152
			RasterToolsUtil.messageBoxError(e.getMessage(), this, e);
152
			RasterSwingLibrary.messageBoxError(e.getMessage(), this, e);
153 153
		}
154 154
	}
155 155
	
......
398 398
									tableLib.save_to_1_1(palettesPath, colorTable);
399 399
									callColorTableChanged();
400 400
								} else {
401
									RasterToolsUtil.messageBoxError("error_importando_tabla_color_rmf", this);
401
									RasterSwingLibrary.messageBoxError("error_importando_tabla_color_rmf", this);
402 402
								}
403 403
								break;
404 404
							}
......
406 406
					}
407 407
				} catch (IOException e1) {
408 408
					e1.printStackTrace();
409
					RasterToolsUtil.messageBoxError("error_importando_tabla_color_rmf", this);
409
					RasterSwingLibrary.messageBoxError("error_importando_tabla_color_rmf", this);
410 410
				} catch (RasterLegendIONotFound e1) {
411 411
					e1.printStackTrace();
412 412
				}
......
415 415

  
416 416
		if (e.getSource() == getButtonDel()) {
417 417
			if (getListViewComponent().getSelectedIndices().length > 0) {
418
				if (RasterToolsUtil.messageBoxYesOrNot("desea_borrar_librerias", this)) {
418
				if (RasterSwingLibrary.messageBoxYesOrNot("desea_borrar_librerias", this)) {
419 419
					File oldFile = new File(palettesPath + File.separator + getListViewComponent().getSelectedValue().getTag());
420 420
					oldFile.delete();
421 421
					int pos = getListViewComponent().getSelectedIndices()[0];
......
456 456
	 */
457 457
	private void testLibraryChanged() {
458 458
		if (hasChanged) {
459
			if (RasterToolsUtil.messageBoxYesOrNot("desea_guardar_cambios", this)) {
459
			if (RasterSwingLibrary.messageBoxYesOrNot("desea_guardar_cambios", this)) {
460 460
				tableLib.save_to_1_1(palettesPath, getColorTableSelected());
461 461
				getListViewComponent().repaint();
462 462
			}

Also available in: Unified diff