Revision 8765 branches/v10/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/core/gui/AddResultLayerTask.java

View differences:

AddResultLayerTask.java
45 45
*
46 46
* $Id$
47 47
* $Log$
48
* Revision 1.4  2006-08-29 07:56:30  cesar
48
* Revision 1.4.2.1  2006-11-15 00:08:17  jjdelcerro
49
* *** empty log message ***
50
*
51
* Revision 1.5  2006/10/20 14:29:07  azabala
52
* temporal bug fixed (problems when we add FLayers to another FLayers)
53
*
54
* Revision 1.4  2006/08/29 07:56:30  cesar
49 55
* Rename the *View* family of classes to *Window* (ie: SingletonView to SingletonWindow, ViewInfo to WindowInfo, etc)
50 56
*
51 57
* Revision 1.3  2006/06/12 19:16:17  azabala
......
180 186
	public void run() throws GeoprocessException {
181 187
		try {
182 188
			FLayer result = geoprocess.getResult();
183
			if(checkToAdd(result))
184
				layers.addLayer(result);
189
			if(checkToAdd(result)){
190
				if(result instanceof FLayers){//TODO PRUEBA
191
					FLayers resultLayers = (FLayers)result;
192
					for(int i = 0; i < resultLayers.getLayersCount(); i++)
193
						layers.addLayer(resultLayers.getLayer(i));
194
				}else
195
					layers.addLayer(result);
196
			}
185 197
			else{
186 198
				JOptionPane.showMessageDialog(
187 199
						(JComponent) PluginServices.

Also available in: Unified diff