Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ThemeControls.java
ThemeControls.java | ||
---|---|---|
55 | 55 |
|
56 | 56 |
import org.apache.log4j.Logger; |
57 | 57 |
|
58 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
58 | 59 |
import com.iver.andami.PluginServices; |
59 | 60 |
import com.iver.andami.messages.NotificationManager; |
60 | 61 |
import com.iver.andami.plugins.Extension; |
61 |
import com.iver.cit.gvsig.fmap.DriverException;
|
|
62 |
import com.iver.cit.gvsig.exceptions.visitors.VisitorException;
|
|
62 | 63 |
import com.iver.cit.gvsig.fmap.MapContext; |
63 | 64 |
import com.iver.cit.gvsig.fmap.MapControl; |
64 | 65 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
... | ... | |
68 | 69 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
69 | 70 |
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource; |
70 | 71 |
import com.iver.cit.gvsig.fmap.operations.strategies.SelectedShapeVisitor; |
71 |
import com.iver.cit.gvsig.fmap.operations.strategies.VisitException; |
|
72 | 72 |
import com.iver.cit.gvsig.project.documents.ProjectDocument; |
73 | 73 |
import com.iver.cit.gvsig.project.documents.view.IProjectView; |
74 | 74 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
... | ... | |
129 | 129 |
SelectedShapeVisitor ssv=new SelectedShapeVisitor(); |
130 | 130 |
try { |
131 | 131 |
map.getLayers().process(ssv); |
132 |
} catch (DriverException e1) {
|
|
132 |
} catch (ReadDriverException e1) {
|
|
133 | 133 |
throw new RuntimeException("No se espera que SelectByPointVisitor lance esta excepci?n", |
134 | 134 |
e1); |
135 |
} catch (VisitException e) {
|
|
135 |
} catch (VisitorException e1) {
|
|
136 | 136 |
throw new RuntimeException("No se espera que SelectByPointVisitor lance esta excepci?n", |
137 |
e); |
|
137 |
e1);
|
|
138 | 138 |
} |
139 | 139 |
IGeometry[] fgs=ssv.getSelectedGeometries(); |
140 | 140 |
SelectableDataSource sds=ssv.getSelectableDataSource(); |
... | ... | |
143 | 143 |
sds.start(); |
144 | 144 |
SHP.SHPFileFromGeometries(fgs,bitset,sds,file); |
145 | 145 |
sds.stop(); |
146 |
} catch (com.hardcode.gdbms.engine.data.driver.DriverException e2) {
|
|
146 |
} catch (ReadDriverException e2) {
|
|
147 | 147 |
NotificationManager.addError("No se pudo escribir la capa", e2); |
148 | 148 |
} |
149 | 149 |
} |
... | ... | |
172 | 172 |
SelectedShapeVisitor ssv=new SelectedShapeVisitor(); |
173 | 173 |
try { |
174 | 174 |
map.getLayers().process(ssv); |
175 |
} catch (DriverException e1) { |
|
175 |
} catch (ReadDriverException e1) {
|
|
176 | 176 |
throw new RuntimeException("No se espera que SelectByPointVisitor lance esta excepci?n", |
177 | 177 |
e1); |
178 |
} catch (VisitException e) { |
|
178 |
} catch (VisitorException e) {
|
|
179 | 179 |
throw new RuntimeException("No se espera que SelectByPointVisitor lance esta excepci?n", |
180 | 180 |
e); |
181 | 181 |
} |
Also available in: Unified diff