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

View differences:

TableEditCutExtension.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).copySelectedRows();
74
                ((Table) v).delSelectionRow();
75
            } catch (DriverException e) {
76
                NotificationManager.addError("No se pudo copiar la fila", e);
77
            }
76
                ((Table) v).cutRow();
77
            } catch (DriverIOException e) {
78
            	NotificationManager.addError("No se pudo cortar la fila", e);
79
			} catch (IOException e) {
80
				NotificationManager.addError("No se pudo cortar la fila", e);
81
			}
78 82
        }
79 83
    }
80 84

  

Also available in: Unified diff