Revision 30056 branches/v2_0_0_prep/extensions/extRasterTools-SE/src/org/gvsig/rastertools/histogram/HistogramProcess.java

View differences:

HistogramProcess.java
18 18
*/
19 19
package org.gvsig.rastertools.histogram;
20 20

  
21
import javax.swing.SwingUtilities;
22

  
21 23
import org.gvsig.andami.PluginServices;
22 24
import org.gvsig.andami.messages.NotificationManager;
23 25
import org.gvsig.raster.RasterProcess;
......
53 55
			// Proceso duro de obtener un histograma. Puede durar bastante tiempo.
54 56
			lastHistogram = iHistogramable.getHistogram();
55 57
			// Ya tenemos el histograma y lo representamos en la ventana
56
			if ((externalActions != null) && (lastHistogram != null))
57
				externalActions.end(lastHistogram);
58

  
59
			SwingUtilities.invokeLater(new Runnable() {
60
				public void run() {
61
					if ((externalActions != null) && (lastHistogram != null))
62
						externalActions.end(lastHistogram);
63
				}
64
			});
65
			
58 66
		} catch (HistogramException e) {
59 67
			NotificationManager.addError("Error calculando el histograma.", e);
60 68
		}

Also available in: Unified diff