How can I get Ace Editor to autocomplete multiple method names? Currentl

How can I get Ace Editor to autocomplete multiple method names? Currently I have:

Map<String, List<String>> codeMap = new HashMap<>();
List<String> clientDataList = new ArrayList<>();
cliDataList.add("getClientLocation()"); cliDataList.add("getClientName()");
codeMap.put("cliData", cliDataList);  ace.addDynamicAutocompletion(codeMap, ".", "class")

When I write this:

cliData.getClientName().

in the Ace Editor I want it to show dialog with "getLength()" completion.

cliData.getClientName().getLength()

I have tried adding another map for "getClientName()" but this does not work.

List<String> getClientNameList = new ArrayList<>();     getClientNameList.add("getLength()");     getClientNameList.add("getChars()");     codeMap.put("getClientName()", getClientNameList);

Hello Arkadiusz,

currenty it is only possible to have two layers --> speaking x keywords (in your case "cliData") with x values ("getClientLocation()", "getClientName()"). If you want, you could try to implement it yourself as the source code is on [GitHub] (https://github.com/f0rce/ace) - if you are successful you can open a pull request and I'll check it out ;)

Have a great weekend, David