Revision 8213 trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/core/gui/AddResultLayerTask.java
AddResultLayerTask.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.4 2006-08-29 07:56:30 cesar |
|
48 |
* Revision 1.5 2006-10-20 14:29:07 azabala |
|
49 |
* temporal bug fixed (problems when we add FLayers to another FLayers) |
|
50 |
* |
|
51 |
* Revision 1.4 2006/08/29 07:56:30 cesar |
|
49 | 52 |
* Rename the *View* family of classes to *Window* (ie: SingletonView to SingletonWindow, ViewInfo to WindowInfo, etc) |
50 | 53 |
* |
51 | 54 |
* Revision 1.3 2006/06/12 19:16:17 azabala |
... | ... | |
180 | 183 |
public void run() throws GeoprocessException { |
181 | 184 |
try { |
182 | 185 |
FLayer result = geoprocess.getResult(); |
183 |
if(checkToAdd(result)) |
|
184 |
layers.addLayer(result); |
|
186 |
if(checkToAdd(result)){ |
|
187 |
if(result instanceof FLayers){//TODO PRUEBA |
|
188 |
FLayers resultLayers = (FLayers)result; |
|
189 |
for(int i = 0; i < resultLayers.getLayersCount(); i++) |
|
190 |
layers.addLayer(resultLayers.getLayer(i)); |
|
191 |
}else |
|
192 |
layers.addLayer(result); |
|
193 |
} |
|
185 | 194 |
else{ |
186 | 195 |
JOptionPane.showMessageDialog( |
187 | 196 |
(JComponent) PluginServices. |
Also available in: Unified diff