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/overview/OverviewsTocMenuEntry.java

View differences:

OverviewsTocMenuEntry.java
40 40
import org.gvsig.raster.fmap.layers.ILayerState;
41 41
import org.gvsig.raster.fmap.layers.IRasterLayerActions;
42 42
import org.gvsig.raster.mainplugin.toolbar.IGenericToolBarMenuItem;
43
import org.gvsig.raster.tools.app.basic.RasterToolsUtil;
43
import org.gvsig.raster.swing.RasterSwingLibrary;
44 44
import org.gvsig.raster.tools.app.basic.raster.process.IProcessActions;
45 45
import org.gvsig.raster.tools.app.basic.raster.process.OverviewsProcess;
46 46
import org.gvsig.raster.tools.app.basic.raster.process.RasterProcess;
47
import org.slf4j.Logger;
48
import org.slf4j.LoggerFactory;
47 49

  
48 50
/**
49 51
 * Herramienta del men? contextual para la generaci?n de overviews.
......
52 54
 * @author Nacho Brodin (nachobrodin@gmail.com)
53 55
 */
54 56
public class OverviewsTocMenuEntry extends AbstractTocContextMenuAction implements PropertyChangeListener, IGenericToolBarMenuItem, IProcessActions {
55
	static private OverviewsTocMenuEntry singleton  = null;
57
	private Logger                       log              = LoggerFactory.getLogger(OverviewsTocMenuEntry.class);
58
	static private OverviewsTocMenuEntry singleton        = null;
56 59

  
57 60
	/**
58 61
	 * Nadie puede crear una instancia a esta clase ?nica, hay que usar el
......
124 127
	public void execute(ITocItem item, FLayer[] selectedItems) {		
125 128
		FLayer lyr = selectedItems[0];
126 129
		if (lyr instanceof FLyrRaster) {
127
			if (RasterToolsUtil.messageBoxYesOrNot("sobreescribir_datos_overview", this)) {
130
			if (RasterSwingLibrary.messageBoxYesOrNot("sobreescribir_datos_overview", this)) {
128 131

  
129 132
				try {
130 133
					if (((FLyrRaster) lyr).getDataStore().getOverviewCount(0) > 0) {
131
						if (!RasterToolsUtil.messageBoxYesOrNot("sobreescribir_overviews", this))
134
						if (!RasterSwingLibrary.messageBoxYesOrNot("sobreescribir_overviews", this))
132 135
							return;
133 136
					}
134 137
				} catch (BandAccessException e) {
135 138
					// Actuamos como si no tubiera overviews pero salvamos un Log
136
					RasterToolsUtil.debug("Error accediendo a la banda en getOverViewCount", this, e);
139
					log.debug("Error accediendo a la banda en getOverViewCount", this, e);
137 140

  
138 141
				} catch (RasterDriverException e) {
139 142
					// Actuamos como si no tubiera overviews pero salvamos un Log
140
					RasterToolsUtil.debug("Error en getOverViewCount", this, e);
143
					log.debug("Error en getOverViewCount", this, e);
141 144
				}
142 145

  
143 146
				RasterProcess process = new OverviewsProcess();

Also available in: Unified diff