public void addCandidate(String value, String desc, String key) { if (desc.endsWith(".")) { desc = desc.substring(0, desc.length() - 1); } candidates.add(new Candidate(value, value, null, desc, null, key, true)); }
public void addCandidate(String value, String desc, String key) { if (desc.endsWith(".")) { desc = desc.substring(0, desc.length() - 1); } candidates.add(new Candidate(value, value, null, desc, null, key, true)); }
protected void add(List<Candidate> candidates, Feature feature) { candidates.add(new Candidate( feature.getName(), feature.getName(), null, feature.getDescription(), null, null, true)); }
default void completeCandidates(Session session, CommandLine commandLine, List<Candidate> candidates) { List<String> strings = new ArrayList<>(); int idx = complete(session, commandLine, strings); String word = ""; if (idx > commandLine.getBufferPosition() - commandLine.getArgumentPosition()) { word = commandLine.getBuffer().substring(commandLine.getBufferPosition() - commandLine.getArgumentPosition(), idx); } for (String string : strings) { String str = word + string; if (str.endsWith(" ")) { candidates.add(new Candidate(str.substring(0, str.length() - 1), true)); } else { candidates.add(new Candidate(word + string, false)); } } } }
default void completeCandidates(Session session, CommandLine commandLine, List<Candidate> candidates) { List<String> strings = new ArrayList<>(); int idx = complete(session, commandLine, strings); String word = ""; if (idx > commandLine.getBufferPosition() - commandLine.getArgumentPosition()) { word = commandLine.getBuffer().substring(commandLine.getBufferPosition() - commandLine.getArgumentPosition(), idx); } for (String string : strings) { String str = word + string; if (str.endsWith(" ")) { candidates.add(new Candidate(str.substring(0, str.length() - 1), true)); } else { candidates.add(new Candidate(word + string, false)); } } } }
protected void add(List<Candidate> candidates, Feature feature) { candidates.add(new Candidate( feature.getName(), feature.getName(), null, feature.getDescription(), null, null, true)); }
if (Files.isDirectory(path)) { String name = path.getFileName().toString(); candidates.add(new Candidate("mvn:" + group + name, false)); if (Files.isDirectory(path)) { String name = path.getFileName().toString(); candidates.add(new Candidate("mvn:" + parts[0] + "/" + name, false)); if (Files.isDirectory(path)) { String name = path.getFileName().toString(); candidates.add(new Candidate("mvn:" + parts[0] + "/" + parts[1] + "/" + name, true));
if (Files.isDirectory(path)) { String name = path.getFileName().toString(); candidates.add(new Candidate("mvn:" + group + name, false)); if (Files.isDirectory(path)) { String name = path.getFileName().toString(); candidates.add(new Candidate("mvn:" + parts[0] + "/" + name, false)); if (Files.isDirectory(path)) { String name = path.getFileName().toString(); candidates.add(new Candidate("mvn:" + parts[0] + "/" + parts[1] + "/" + name, true));