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/ColorTablePanel.java
ColorTablePanel.java | ||
---|---|---|
46 | 46 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent; |
47 | 47 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener; |
48 | 48 |
import org.gvsig.raster.fmap.layers.FLyrRaster; |
49 |
import org.gvsig.raster.swing.RasterSwingLibrary; |
|
49 | 50 |
import org.gvsig.raster.swing.RasterSwingLocator; |
50 | 51 |
import org.gvsig.raster.swing.preview.PreviewBasePanelTab; |
51 | 52 |
import org.gvsig.raster.swing.preview.PreviewPanel; |
... | ... | |
244 | 245 |
else |
245 | 246 |
dataset.saveColorTableToRmf(null); |
246 | 247 |
} catch (RmfSerializerException e) { |
247 |
RasterToolsUtil.messageBoxError("error_salvando_rmf", this, e);
|
|
248 |
RasterSwingLibrary.messageBoxError("error_salvando_rmf", this, e);
|
|
248 | 249 |
} |
249 | 250 |
} |
250 | 251 |
|
... | ... | |
313 | 314 |
if (colorTableFilter != null) { |
314 | 315 |
ColorTable colorTable = (ColorTable)colorTableFilter.getParam("colorTable"); |
315 | 316 |
if (colorTable.isCompressible()) { |
316 |
if (RasterToolsUtil.messageBoxYesOrNot("comprimir_paleta", this)) {
|
|
317 |
if (RasterSwingLibrary.messageBoxYesOrNot("comprimir_paleta", this)) {
|
|
317 | 318 |
colorTable.compressPalette(); |
318 | 319 |
colorTable.setInterpolated(true); |
319 | 320 |
} |
... | ... | |
355 | 356 |
*/ |
356 | 357 |
private void accept() { |
357 | 358 |
if(!getGeneralPanel().getCheckBoxEnabled().isSelected()) { |
358 |
boolean ok = RasterToolsUtil.messageBoxYesOrNot("colortable_not_active", this);
|
|
359 |
boolean ok = RasterSwingLibrary.messageBoxYesOrNot("colortable_not_active", this);
|
|
359 | 360 |
if(ok) |
360 | 361 |
getColorTableListener().accept(); |
361 | 362 |
else |
... | ... | |
413 | 414 |
} |
414 | 415 |
|
415 | 416 |
if (e.getButton() == (ButtonsPanel.BUTTON_LAST + 2)) { |
416 |
if (RasterToolsUtil.messageBoxYesOrNot("guardar_como_predeterminado", this)) {
|
|
417 |
if (RasterSwingLibrary.messageBoxYesOrNot("guardar_como_predeterminado", this)) {
|
|
417 | 418 |
saveColorTable(); |
418 | 419 |
accept(); |
419 | 420 |
} |
Also available in: Unified diff