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/properties/control/EnhancedControl.java

View differences:

EnhancedControl.java
28 28

  
29 29
import javax.swing.JCheckBox;
30 30

  
31
import org.gvsig.andami.PluginServices;
32 31
import org.gvsig.fmap.dal.coverage.datastruct.Params;
33 32
import org.gvsig.fmap.dal.coverage.exception.FilterAddException;
34 33
import org.gvsig.fmap.dal.coverage.exception.FilterManagerException;
......
41 40
import org.gvsig.gui.beans.panelGroup.AbstractPanelGroup;
42 41
import org.gvsig.gui.beans.slidertext.listeners.SliderEvent;
43 42
import org.gvsig.gui.beans.slidertext.listeners.SliderListener;
43
import org.gvsig.i18n.Messages;
44 44
import org.gvsig.raster.fmap.layers.FLyrRaster;
45 45
import org.gvsig.raster.mainplugin.properties.RasterPropertiesTocMenuEntry;
46 46
import org.gvsig.raster.swing.RasterSwingLibrary;
......
159 159
		try {
160 160
			saveStatus();
161 161
		} catch (FilterManagerException e) {
162
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_saving_filters"), this, e);
162
			RasterSwingLibrary.messageBoxError(Messages.getText("error_saving_filters"), this, e);
163 163
		} catch (FilterTypeException e) {
164
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_saving_filters"), this, e);
164
			RasterSwingLibrary.messageBoxError(Messages.getText("error_saving_filters"), this, e);
165 165
		}
166 166

  
167 167
		setValuesFromFilterToPanel();
......
301 301
	 * Acciones realizadas al final la aplicaci?n de filtros
302 302
	 * @throws FilterTypeException
303 303
	 */
304
	@SuppressWarnings("unchecked")
305 304
	private void endActionsForFilterSettings() throws FilterTypeException {
306 305
		ArrayList listOrder = (ArrayList) panelGroup.getProperties().get("filterOrder");
307 306
		List<RasterFilter> listCopy = filterList.getStatusCloned();
......
332 331
		try {
333 332
			setValuesFromPanelToFilter();
334 333
		} catch (FilterTypeException e) {
335
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
334
			RasterSwingLibrary.messageBoxError(Messages.getText("error_adding_filters"), this, e);
336 335
		} catch (FilterAddException e) {
337
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
336
			RasterSwingLibrary.messageBoxError(Messages.getText("error_adding_filters"), this, e);
338 337
		}
339 338
	}
340 339

  
......
346 345
		try {
347 346
			saveStatus();
348 347
		} catch (FilterManagerException e) {
349
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_saving_filters"), this, e);
348
			RasterSwingLibrary.messageBoxError(Messages.getText("error_saving_filters"), this, e);
350 349
		} catch (FilterTypeException e) {
351
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_saving_filters"), this, e);
350
			RasterSwingLibrary.messageBoxError(Messages.getText("error_saving_filters"), this, e);
352 351
		}
353 352
	}
354 353

  
......
360 359
			try {
361 360
				setValuesFromPanelToFilter();
362 361
			} catch (FilterTypeException e) {
363
				RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
362
				RasterSwingLibrary.messageBoxError(Messages.getText("error_adding_filters"), this, e);
364 363
			} catch (FilterAddException e) {
365
				RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_filters"), this, e);
364
				RasterSwingLibrary.messageBoxError(Messages.getText("error_adding_filters"), this, e);
366 365
			}
367 366
	}
368 367

  
......
473 472
			enhancementManager.addFilter(params);
474 473
			endActionsForFilterSettings();
475 474
		} catch (FilterManagerException e) {
476
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_stats"), this, e);
475
			RasterSwingLibrary.messageBoxError(Messages.getText("error_adding_stats"), this, e);
477 476
		} catch (FilterTypeException e) {
478
			RasterSwingLibrary.messageBoxError(PluginServices.getText(this, "error_adding_stats"), this, e);
477
			RasterSwingLibrary.messageBoxError(Messages.getText("error_adding_stats"), this, e);
479 478
		}
480 479
	}
481 480

  

Also available in: Unified diff