Revision 3996 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TableEditInsertExtension.java

View differences:

TableEditInsertExtension.java
40 40
 */
41 41
package com.iver.cit.gvsig;
42 42

  
43
import java.io.IOException;
44

  
43 45
import com.hardcode.gdbms.engine.data.driver.DriverException;
44 46

  
45 47
import com.iver.andami.PluginServices;
......
47 49
import com.iver.andami.plugins.Extension;
48 50
import com.iver.andami.ui.mdiManager.View;
49 51

  
52
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
50 53
import com.iver.cit.gvsig.gui.Table;
51 54

  
52 55

  
......
70 73
            View v = PluginServices.getMDIManager().getActiveView();
71 74

  
72 75
            try {
73
                ((Table) v).addEmptyRow();
74
            } catch (DriverException e) {
75
                NotificationManager.addError("No se pudo insertar la fila", e);
76
            }
76
                ((Table) v).addRow(null);
77
            } catch (DriverIOException e) {
78
            	 NotificationManager.addError("No se pudo insertar la fila", e);
79
			} catch (IOException e) {
80
				 NotificationManager.addError("No se pudo insertar la fila", e);
81
			}
77 82
        }
78 83

  
79 84
        if ("INSERTCOLUMN".equals(actionCommand)) {
80 85
            View v = PluginServices.getMDIManager().getActiveView();
81

  
82
            try {
83
                ((Table) v).addEmptyRow();
84
            } catch (DriverException e) {
85
                NotificationManager.addError("No se pudo insertar la fila", e);
86
            }
86
                ((Table) v).addColumn();
87 87
        }
88 88
    }
89 89

  

Also available in: Unified diff