Revision 6399 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/commands/RenameFieldCommand.java
RenameFieldCommand.java | ||
---|---|---|
44 | 44 |
|
45 | 45 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
46 | 46 |
import com.iver.cit.gvsig.fmap.edition.EditableAdapter; |
47 |
import com.iver.cit.gvsig.fmap.edition.EditionException; |
|
47 | 48 |
import com.iver.cit.gvsig.fmap.edition.InternalField; |
48 | 49 |
|
49 | 50 |
public class RenameFieldCommand extends AbstractCommand { |
... | ... | |
63 | 64 |
|
64 | 65 |
|
65 | 66 |
public void undo() throws DriverIOException, IOException { |
66 |
edAdapter.undoRenameField(field, antName); |
|
67 |
try { |
|
68 |
edAdapter.undoRenameField(field, antName); |
|
69 |
} catch (EditionException e) { |
|
70 |
// TODO Auto-generated catch block |
|
71 |
e.printStackTrace(); |
|
72 |
} |
|
67 | 73 |
} |
68 | 74 |
|
69 | 75 |
public void redo() throws DriverIOException, IOException { |
70 |
edAdapter.doRenameField(field, newName); |
|
76 |
try { |
|
77 |
edAdapter.doRenameField(field, newName); |
|
78 |
} catch (EditionException e) { |
|
79 |
// TODO Auto-generated catch block |
|
80 |
e.printStackTrace(); |
|
81 |
} |
|
71 | 82 |
|
72 | 83 |
} |
73 | 84 |
|
Also available in: Unified diff