Revision 10626 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/BreakCADTool.java

View differences:

BreakCADTool.java
46 46
import java.awt.geom.PathIterator;
47 47
import java.awt.geom.Point2D;
48 48
import java.awt.geom.Rectangle2D;
49
import java.io.IOException;
50 49
import java.util.ArrayList;
51 50

  
51
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
52 52
import com.iver.andami.PluginServices;
53 53
import com.iver.cit.gvsig.CADExtension;
54
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileReadException;
54 55
import com.iver.cit.gvsig.fmap.ViewPort;
55 56
import com.iver.cit.gvsig.fmap.core.DefaultFeature;
56 57
import com.iver.cit.gvsig.fmap.core.FShape;
......
58 59
import com.iver.cit.gvsig.fmap.core.IGeometry;
59 60
import com.iver.cit.gvsig.fmap.core.ShapeFactory;
60 61
import com.iver.cit.gvsig.fmap.core.v02.FConverter;
61
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
62 62
import com.iver.cit.gvsig.fmap.edition.DefaultRowEdited;
63 63
import com.iver.cit.gvsig.fmap.edition.EditionEvent;
64 64
import com.iver.cit.gvsig.fmap.edition.IRowEdited;
......
156 156
//        		}else {
157 157
                    breakGeometry(rowEdited);
158 158
//				}
159
            } catch (IOException e) {
160
                e.printStackTrace();
161
            } catch (DriverIOException e) {
162
                e.printStackTrace();
163
            }
159
            } catch (ReadDriverException e) {
160
				e.printStackTrace();
161
			} catch (ExpansionFileReadException e) {
162
				e.printStackTrace();
163
			}
164 164
           }
165 165
         //}
166 166
    }
......
344 344
    }
345 345
*/
346 346

  
347
    private void breakGeometry(DefaultRowEdited dre) throws IOException, DriverIOException {
347
    private void breakGeometry(DefaultRowEdited dre) throws ReadDriverException, ExpansionFileReadException {
348 348
        breakGeom(dre);
349 349
    }
350 350

  
351 351

  
352
	private void breakGeom(DefaultRowEdited dre) throws DriverIOException, IOException {
352
	private void breakGeom(DefaultRowEdited dre) throws ReadDriverException, ExpansionFileReadException {
353 353
    	GeneralPathX newGp1 = new GeneralPathX();
354 354
        GeneralPathX newGp2 = new GeneralPathX();
355 355
        IGeometry geomAux=((DefaultFeature)rowEdited.getLinkedRow()).getGeometry();

Also available in: Unified diff