Revision 6489 trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/merge/MergeGeoprocessController.java
MergeGeoprocessController.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.2 2006-06-29 07:33:57 fjp |
|
48 |
* Revision 1.3 2006-07-21 09:10:34 azabala |
|
49 |
* fixed bug 608: user doesnt enter any result file to the geoprocess panel |
|
50 |
* |
|
51 |
* Revision 1.2 2006/06/29 07:33:57 fjp |
|
49 | 52 |
* Cambios ISchemaManager y IFieldManager por terminar |
50 | 53 |
* |
51 | 54 |
* Revision 1.1 2006/06/20 18:20:45 azabala |
... | ... | |
68 | 71 |
package com.iver.cit.gvsig.geoprocess.impl.merge; |
69 | 72 |
|
70 | 73 |
import java.io.File; |
74 |
import java.io.FileNotFoundException; |
|
71 | 75 |
|
72 | 76 |
import com.iver.andami.PluginServices; |
73 | 77 |
import com.iver.cit.gvsig.fmap.drivers.SHPLayerDefinition; |
... | ... | |
102 | 106 |
FLyrVect[] inputLayers = geoProcessingMergePanel.getSelectedLayers(); |
103 | 107 |
FLayers layers = geoProcessingMergePanel.getFLayers(); |
104 | 108 |
FLyrVect schemaToPreserve = geoProcessingMergePanel.getSelectedSchema(); |
105 |
File outputFile = geoProcessingMergePanel.getOutputFile(); |
|
109 |
File outputFile = null; |
|
110 |
try { |
|
111 |
outputFile = geoProcessingMergePanel.getOutputFile(); |
|
112 |
} catch (FileNotFoundException e3) { |
|
113 |
String error = PluginServices.getText(this, "Error_entrada_datos"); |
|
114 |
String errorDescription = PluginServices.getText(this, "Error_seleccionar_resultado"); |
|
115 |
geoProcessingMergePanel.error(errorDescription, error); |
|
116 |
return false; |
|
117 |
} |
|
106 | 118 |
if (outputFile == null || (outputFile.getAbsolutePath().length() == 0)) { |
107 | 119 |
String error = PluginServices.getText(this, "Error_entrada_datos"); |
108 | 120 |
String errorDescription = PluginServices.getText(this, "Error_seleccionar_resultado"); |
Also available in: Unified diff