public void caretUpdate(CaretEvent e) { if (!isPaneVisible()) { // cancel timer if caret moved cancelRequest(); } else { // refresh completion only if a pane is already visible refresh(true); } } };
/** * Set the visibility of the view. This method should be used mainly for * hiding the completion pane. If used with visible set to true it calls the * <tt>popup(false)</tt>. */ public void setPaneVisible(boolean visible) { if (visible) { if (extEditorUI.getComponent() != null) { popup(false); } } else { if (pane != null) { cancelRequest(); invalidateLastResult(); pane.setVisible(false); caretPos = -1; } } }
completion.popup(true); } else if ( result == ExtSyntaxSupport.COMPLETION_CANCEL ) { completion.cancelRequest();
completion.cancelRequest();