for (final Iterator<Command> iterator= new CommandIterator(fCommands, originalCommand, false); iterator.hasNext(); ) iterator.next().execute(document);
for (final Iterator<Command> iterator= new CommandIterator(fCommands, originalCommand, false); iterator.hasNext(); ) iterator.next().execute(document);
/** * Returns an iterator over the commands in ascending position order. * The iterator includes the original document command. * Commands cannot be removed. * * @return returns the command iterator */ public Iterator<Command> getCommandIterator() { Command command= new Command(offset, length, text, owner); return new CommandIterator(fCommands, command, true); }
/** * Returns an iterator over the commands in ascending position order. * The iterator includes the original document command. * Commands cannot be removed. * * @return returns the command iterator */ public Iterator<Command> getCommandIterator() { Command command= new Command(offset, length, text, owner); return new CommandIterator(fCommands, command, true); }