Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/commands/CommandCollection.java

View differences:

CommandCollection.java
40 40
*/
41 41
package com.iver.cit.gvsig.fmap.edition.commands;
42 42

  
43
import java.io.IOException;
44 43
import java.util.ArrayList;
45 44

  
46
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
45
import com.iver.cit.gvsig.exceptions.commands.EditionCommandException;
47 46

  
48 47

  
49 48
public class CommandCollection extends AbstractCommand{
......
52 51
		return commands.size()==0;
53 52
	}
54 53
	/**
54
	 * @throws EditionCommandException
55 55
	 * @see com.iver.cit.gvsig.fmap.edition.Command#undo()
56 56
	 */
57
	public void undo() throws DriverIOException, IOException {
57
	public void undo() throws EditionCommandException {
58 58
	for(int i=commands.size()-1;i>=0;i--){
59 59
		((Command)commands.get(i)).undo();
60 60
	}
61 61
	}
62 62

  
63 63
	/**
64
	 * @throws EditionCommandException
64 65
	 * @see com.iver.cit.gvsig.fmap.edition.Command#redo()
65 66
	 */
66
	public void redo() throws DriverIOException, IOException {
67
	public void redo() throws EditionCommandException {
67 68
		for (int i=0;i<commands.size();i++){
68 69
			((Command)commands.get(i)).redo();
69 70
		}

Also available in: Unified diff