/** * Sets the completions to display in the choices list. The first * completion is selected. * * @param completions The completions to display. */ public void setCompletions(List<Completion> completions) { model.setContents(completions); selectFirstItem(); }
installKeyBindings(); lastLine = ac.getLineOfCaret(); selectFirstItem(); if (descWindow==null && ac.getShowDescWindow()) { descWindow = createDescriptionWindow();