org.ow2.shelbie.core.internal.handler.completer
Class CommandsCompleter

java.lang.Object
  extended by org.ow2.shelbie.core.internal.handler.completer.CommandsCompleter
All Implemented Interfaces:
jline.console.completer.Completer

public class CommandsCompleter
extends Object
implements jline.console.completer.Completer

Created by IntelliJ IDEA. User: sauthieg Date: 22 janv. 2010 Time: 13:13:42 To change this template use File | Settings | File Templates.


Constructor Summary
CommandsCompleter(org.osgi.framework.BundleContext context)
           
 
Method Summary
 void bindCommand(org.osgi.framework.ServiceReference reference)
           
 int complete(String buffer, int cursor, List<CharSequence> candidates)
          Populates candidates with a list of possible completions for the buffer.
 void unbindCommand(org.osgi.framework.ServiceReference reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandsCompleter

public CommandsCompleter(org.osgi.framework.BundleContext context)
Method Detail

bindCommand

public void bindCommand(org.osgi.framework.ServiceReference reference)

unbindCommand

public void unbindCommand(org.osgi.framework.ServiceReference reference)

complete

public int complete(String buffer,
                    int cursor,
                    List<CharSequence> candidates)
Populates candidates with a list of possible completions for the buffer. The candidates list will not be sorted before being displayed to the user: thus, the complete method should sort the List before returning.

Specified by:
complete in interface jline.console.completer.Completer
Parameters:
buffer - the buffer
candidates - the List of candidates to populate
Returns:
the index of the buffer for which the completion will be relative


Copyright © 2013 OW2 Consortium. All Rights Reserved.