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/analysisview/ViewRasterAnalysisTocMenuEntry.java
ViewRasterAnalysisTocMenuEntry.java | ||
---|---|---|
22 | 22 |
import java.beans.PropertyChangeListener; |
23 | 23 |
import java.io.File; |
24 | 24 |
import java.util.ArrayList; |
25 |
import java.util.List; |
|
25 | 26 |
|
26 | 27 |
import javax.swing.Icon; |
27 | 28 |
import javax.swing.JOptionPane; |
... | ... | |
40 | 41 |
import org.gvsig.raster.fmap.layers.FLyrRaster; |
41 | 42 |
import org.gvsig.raster.fmap.layers.ILayerState; |
42 | 43 |
import org.gvsig.raster.mainplugin.toolbar.IGenericToolBarMenuItem; |
44 |
import org.gvsig.raster.swing.RasterSwingLibrary; |
|
43 | 45 |
import org.gvsig.raster.tools.app.basic.RasterToolsUtil; |
44 | 46 |
import org.gvsig.raster.tools.app.basic.tool.pixelincrease.PixelIncreaseDialog; |
45 | 47 |
|
... | ... | |
115 | 117 |
|
116 | 118 |
public void execute(ITocItem item, FLayer[] selectedItems) { |
117 | 119 |
MapControl mcCurrentLoc = null; |
118 |
ArrayList mapControlListLoc = new ArrayList();
|
|
120 |
List<MapOverview> mapControlListLoc = new ArrayList<MapOverview>();
|
|
119 | 121 |
IWindow[] w = PluginServices.getMDIManager().getAllWindows(); |
120 | 122 |
IWindow activeWindow = PluginServices.getMDIManager().getActiveWindow(); |
121 | 123 |
FLayer lyr = selectedItems[0]; |
... | ... | |
146 | 148 |
try { |
147 | 149 |
File f = new File(path); |
148 | 150 |
if(!f.exists()) { |
149 |
RasterToolsUtil.messageBoxError("error_file_not_found", PluginServices.getMDIManager().getActiveWindow());
|
|
151 |
RasterSwingLibrary.messageBoxError("error_file_not_found", PluginServices.getMDIManager().getActiveWindow());
|
|
150 | 152 |
return; |
151 | 153 |
} |
152 | 154 |
lyr = DefaultFLyrRaster.createLayer(lyr.getName(), f); |
Also available in: Unified diff