org.sonatype.gshell.variables
Class VariableNameCompleter

java.lang.Object
  extended by org.sonatype.gshell.variables.VariableNameCompleter
All Implemented Interfaces:
jline.console.completer.Completer

@Singleton
public class VariableNameCompleter
extends Object
implements jline.console.completer.Completer

Completer for variable names. Keeps up to date automatically by handling variable-related events.

Since:
2.0
Author:
Jason Dillon

Constructor Summary
VariableNameCompleter(EventManager events, javax.inject.Provider<Variables> variables)
           
 
Method Summary
 int complete(String buffer, int cursor, List<CharSequence> candidates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableNameCompleter

@Inject
public VariableNameCompleter(EventManager events,
                                    javax.inject.Provider<Variables> variables)
Method Detail

complete

public int complete(String buffer,
                    int cursor,
                    List<CharSequence> candidates)
Specified by:
complete in interface jline.console.completer.Completer


Copyright © 2008-2011 Sonatype. All Rights Reserved.