Revision 1081 org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.app/org.gvsig.raster.tools.app.basic/src/main/java/org/gvsig/raster/tools/app/basic/tool/enhanced/EnhancedTocMenuEntry.java
EnhancedTocMenuEntry.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
import javax.swing.Icon; |
25 | 25 |
|
26 |
import org.gvsig.andami.PluginServices; |
|
27 | 26 |
import org.gvsig.app.project.documents.view.toc.AbstractTocContextMenuAction; |
28 | 27 |
import org.gvsig.app.project.documents.view.toc.ITocItem; |
29 | 28 |
import org.gvsig.fmap.dal.coverage.datastruct.BufferHistogram; |
30 |
import org.gvsig.fmap.dal.coverage.exception.HistogramException; |
|
31 | 29 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
32 | 30 |
import org.gvsig.raster.fmap.layers.FLyrRaster; |
33 | 31 |
import org.gvsig.raster.fmap.layers.ILayerState; |
... | ... | |
159 | 157 |
if(param == null || param instanceof FLyrRaster) { |
160 | 158 |
HistogramProcess histogramProcess = new HistogramProcess(); |
161 | 159 |
histogramProcess.setActions(this); |
162 |
try { |
|
163 |
histogramProcess.addParam("histogramable", this.lyr.getDataStore().getHistogramComputer()); |
|
164 |
histogramProcess.start(); |
|
165 |
} catch (HistogramException e) { |
|
166 |
RasterToolsUtil.messageBoxError("error_computing_histogram", PluginServices.getMDIManager().getActiveWindow(), e); |
|
167 |
} catch (InterruptedException e) { |
|
168 |
} |
|
160 |
histogramProcess.addParam("histogramable", this.lyr.getDataStore().getHistogramComputer()); |
|
161 |
histogramProcess.start(); |
|
169 | 162 |
} |
170 | 163 |
if(param instanceof BufferHistogram) { |
171 | 164 |
EnhancedDialog enhancedDialog = new EnhancedDialog(lyr, 760, 421); |
Also available in: Unified diff