*/
public void showCodeEditorPopupMenu() throws AutoCompletePopupMenu.AutoCompleteException {
try {
JTextComponent editorPane = editor.getEditorComponent();
Caret caret = editorPane.getCaret();
final int caretPos = Math.min(caret.getMark(), caret.getDot());
Point location = editorPane.getUI().modelToView(editorPane, caretPos).getLocation();
int height = editorPane.getFontMetrics(editorPane.getFont()).getHeight();
location = new Point (location.x, location.y + height);
try {
autoCompletePopup.start(perspective, editor.getEditorComponent(), location);