public void setDocumentationVisible(boolean b) {
if (b == false) {
popup.setVisible(false);
return;
}
CommandList lst = CommandList.getInstance();
lst.getFilter().refilterList();
popup.add(AutoCompletePanel.getInstance(), this);
int posx = 0;
int posy = 0;
if (getCodeTextArea().getCaret().getMagicCaretPosition() != null) {
posx = getCodeTextArea().getCaret().getMagicCaretPosition().x;
posy = getCodeTextArea().getCaret().getMagicCaretPosition().y;
}
popup.show(this, posx + 5, posy + 93);
lst.setSelectedIndex(0);
lst.requestFocus();
}