org.overlord.sramp.shell.util
Class FileNameCompleter

java.lang.Object
  extended by jline.console.completer.FileNameCompleter
      extended by org.overlord.sramp.shell.util.FileNameCompleter
All Implemented Interfaces:
jline.console.completer.Completer

public class FileNameCompleter
extends jline.console.completer.FileNameCompleter

File name completer that undoes the Windows backslash mojo so that the completer will work in most modern Windows shells, including cygwin.

Author:
eric.wittmann@redhat.com

Constructor Summary
FileNameCompleter()
          Constructor.
 
Method Summary
 int complete(String buffer, int cursor, List<CharSequence> candidates)
           
 
Methods inherited from class jline.console.completer.FileNameCompleter
getUserDir, getUserHome, matchFiles, render, separator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameCompleter

public FileNameCompleter()
Constructor.

Method Detail

complete

public int complete(String buffer,
                    int cursor,
                    List<CharSequence> candidates)
Specified by:
complete in interface jline.console.completer.Completer
Overrides:
complete in class jline.console.completer.FileNameCompleter
See Also:
FileNameCompleter.complete(java.lang.String, int, java.util.List)


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.