01: /*
02: * Copyright (c) 2002-2007, Marc Prud'hommeaux. All rights reserved.
03: *
04: * This software is distributable under the BSD license. See the terms of the
05: * BSD license in the documentation provided with this software.
06: */
07: package jline;
08:
09: import java.io.*;
10: import java.util.*;
11:
12: /**
13: * <p>
14: * A {@link CompletionHandler} that deals with multiple distinct completions
15: * by cycling through each one every time tab is pressed. This
16: * mimics the behavior of the
17: * <a href="http://packages.qa.debian.org/e/editline.html">editline</a>
18: * library.
19: * </p>
20: * <p><strong>This class is currently a stub; it does nothing</strong></p>
21: * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a>
22: */
23: public class CandidateCycleCompletionHandler implements
24: CompletionHandler {
25: public boolean complete(final ConsoleReader reader,
26: final List candidates, final int position)
27: throws IOException {
28: throw new IllegalStateException(
29: "CandidateCycleCompletionHandler unimplemented");
30: }
31: }
|