Revision 8765 branches/v10/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/intersection/IntersectionGeoprocessController.java
IntersectionGeoprocessController.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.4 2006-08-11 16:30:38 azabala
|
|
48 |
* Revision 1.4.2.1 2006-11-15 00:08:17 jjdelcerro
|
|
49 | 49 |
* *** empty log message *** |
50 | 50 |
* |
51 |
* Revision 1.5 2006/10/23 10:29:18 caballero |
|
52 |
* ancho y alto del panel |
|
53 |
* |
|
54 |
* Revision 1.4 2006/08/11 16:30:38 azabala |
|
55 |
* *** empty log message *** |
|
56 |
* |
|
51 | 57 |
* Revision 1.3 2006/07/21 09:10:34 azabala |
52 | 58 |
* fixed bug 608: user doesnt enter any result file to the geoprocess panel |
53 | 59 |
* |
... | ... | |
105 | 111 |
public class IntersectionGeoprocessController extends |
106 | 112 |
AbstractGeoprocessController { |
107 | 113 |
|
108 |
|
|
114 |
|
|
109 | 115 |
private OverlayPanelIF geoProcessingIntersectPanel; |
110 | 116 |
private IntersectionGeoprocess intersection; |
111 |
|
|
117 |
|
|
112 | 118 |
public void setView(IGeoprocessPanel viewPanel) { |
113 |
this.geoProcessingIntersectPanel =
|
|
119 |
this.geoProcessingIntersectPanel = |
|
114 | 120 |
(OverlayPanelIF) viewPanel; |
115 | 121 |
} |
116 | 122 |
|
... | ... | |
158 | 164 |
String errorDescription = PluginServices.getText(this, "Error_preparar_escritura_resultados"); |
159 | 165 |
geoProcessingIntersectPanel.error(errorDescription, error); |
160 | 166 |
return false; |
161 |
}
|
|
162 |
|
|
167 |
} |
|
168 |
|
|
163 | 169 |
intersection.setResultLayerProperties(writer, schemaManager); |
164 | 170 |
HashMap params = new HashMap(); |
165 | 171 |
boolean onlySelectedFirst = geoProcessingIntersectPanel |
... | ... | |
184 | 190 |
MonitorableDecoratorMainFirst globalTask = new MonitorableDecoratorMainFirst(task1, |
185 | 191 |
task2); |
186 | 192 |
if(!overlayLayer.isSpatiallyIndexed()){ |
187 |
final IMonitorableTask sptIdxTask =
|
|
193 |
final IMonitorableTask sptIdxTask = |
|
188 | 194 |
geoProcessingIntersectPanel.askForSpatialIndexCreation(overlayLayer); |
189 | 195 |
if(sptIdxTask != null){ |
190 | 196 |
PluginServices.backgroundExecution( |
191 | 197 |
new Runnable(){ |
192 | 198 |
public void run() { |
193 | 199 |
PluginServices. |
194 |
cancelableBackgroundExecution(sptIdxTask);
|
|
200 |
cancelableBackgroundExecution(sptIdxTask); |
|
195 | 201 |
}} |
196 | 202 |
); |
197 |
}
|
|
203 |
} |
|
198 | 204 |
}//if |
199 | 205 |
if (globalTask.preprocess()) |
200 | 206 |
PluginServices.cancelableBackgroundExecution(globalTask); |
... | ... | |
206 | 212 |
} |
207 | 213 |
return true; |
208 | 214 |
} |
215 |
public int getWidth() { |
|
216 |
return 700; |
|
217 |
} |
|
209 | 218 |
|
219 |
public int getHeight() { |
|
220 |
return 300; |
|
221 |
} |
|
210 | 222 |
} |
211 | 223 |
|
Also available in: Unified diff