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);