//(c):Anne Siepelmeyer package gzz.potion.potions; import java.util.*; import gzz.vob.linebreaking.HChain; import gzz.*; import gzz.potion.*; public class Delete implements Command { public String getString(Expression[] params, Map context) { String s = params[0].getString(context); return "Delete "+s; } public void render(Expression[] params, Map context, HChain into) { } public Type[] getParams() { return null; } public void execute(List [] params, Map context) { List cells = params[0]; for(Iterator i = cells.iterator(); i.hasNext();) { Cell c = (Cell)i.next(); c.delete(); } } }