Revision 13068 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/AddLayer.java
AddLayer.java | ||
---|---|---|
60 | 60 |
import com.iver.andami.PluginServices; |
61 | 61 |
import com.iver.andami.plugins.Extension; |
62 | 62 |
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileReadException; |
63 |
import com.iver.cit.gvsig.exceptions.layers.LoadLayerException; |
|
64 | 63 |
import com.iver.cit.gvsig.fmap.MapControl; |
65 | 64 |
import com.iver.cit.gvsig.fmap.ViewPort; |
66 |
import com.iver.cit.gvsig.fmap.drivers.RasterDriver; |
|
67 | 65 |
import com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver; |
68 | 66 |
import com.iver.cit.gvsig.fmap.layers.CancelationException; |
69 | 67 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
... | ... | |
216 | 214 |
private FOpenDialog createFOpenDialog() { |
217 | 215 |
fopen = new FOpenDialog(); |
218 | 216 |
FileOpenDialog fileDlg = new FileOpenDialog(new Class[] { |
219 |
VectorialFileDriver.class, RasterDriver.class }); |
|
217 |
VectorialFileDriver.class}); // , RasterDriver.class });
|
|
220 | 218 |
// first, file wizard tab |
221 | 219 |
fopen.addTab(PluginServices.getText(this, "Fichero"), fileDlg); |
222 | 220 |
|
... | ... | |
305 | 303 |
if (drivers[iFile] instanceof VectorialFileDriver) { |
306 | 304 |
lyr = LayerFactory.createLayer(layerName, |
307 | 305 |
(VectorialFileDriver) drivers[iFile], fich, proj); |
308 |
} else if (drivers[iFile] instanceof RasterDriver) { |
|
306 |
}/* else if (drivers[iFile] instanceof RasterDriver) {
|
|
309 | 307 |
lyr = LayerFactory.createLayer(layerName, |
310 | 308 |
(RasterDriver) drivers[iFile], fich, proj); |
311 |
} |
|
309 |
}*/
|
|
312 | 310 |
|
313 | 311 |
if (lyr != null) { |
314 | 312 |
//lyr.setVisible(true); |
... | ... | |
369 | 367 |
// |
370 | 368 |
// errors.add(exception); |
371 | 369 |
// } |
372 |
} catch (LoadLayerException e) { |
|
373 |
errors.add(e); |
|
370 |
// } catch (LoadLayerException e) {
|
|
371 |
// errors.add(e);
|
|
374 | 372 |
} catch (ReadDriverException e) { |
375 | 373 |
errors.add(e); |
376 | 374 |
} catch (ExpansionFileReadException e) { |
Also available in: Unified diff