public class FileCompletor extends Object implements jline.Completor
FileNameCompletor to take into account the current working directory| Constructor and Description |
|---|
FileCompletor() |
| Modifier and Type | Method and Description |
|---|---|
int |
complete(String buf,
int cursor,
List candidates) |
int |
matchFiles(String buffer,
String translated,
File[] entries,
List candidates)
Match the specified buffer to the array of entries and enter the matches into the list of
candidates.
|
protected void |
sortFileNames(List fileNames) |
public FileCompletor()
public int complete(String buf, int cursor, List candidates)
complete in interface jline.Completorprotected void sortFileNames(List fileNames)
public int matchFiles(String buffer, String translated, File[] entries, List candidates)
buffer - the untranslated buffertranslated - the buffer with common characters replacedentries - the list of files to matchcandidates - the list of candidates to populateCopyright © 2016 Nuxeo SA. All rights reserved.