Revision 3996 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TableEditPasteExtension.java
TableEditPasteExtension.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).addSelectionToEnd(); |
|
74 |
} catch (DriverException e) { |
|
75 |
NotificationManager.addError("No se pudo pegar la fila", e); |
|
76 |
} |
|
76 |
((Table) v).pasteRow(); |
|
77 |
} catch (DriverIOException e) { |
|
78 |
NotificationManager.addError("No se pudo pegar la fila", e); |
|
79 |
} catch (IOException e) { |
|
80 |
NotificationManager.addError("No se pudo pegar la fila", e); |
|
81 |
} |
|
77 | 82 |
} |
78 | 83 |
} |
79 | 84 |
|
... | ... | |
86 | 91 |
if (v == null) { |
87 | 92 |
return false; |
88 | 93 |
} else if (v.getClass() == Table.class) { |
89 |
return ((Table) v).isEditing() && ((Table) v).isCopy();
|
|
94 |
return ((Table) v).isEditing() && ((Table) v).isCopied();
|
|
90 | 95 |
} else { |
91 | 96 |
return false; |
92 | 97 |
} |
Also available in: Unified diff