org.eclipse.jface.text.contentassist.ICompletionProposalExtension4 Java Examples
The following examples show how to use
org.eclipse.jface.text.contentassist.ICompletionProposalExtension4.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CompletionProposalPopup.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
/** * Returns <code>true</code> if <code>proposal</code> should be auto-inserted, <code>false</code> otherwise. * * @param proposal * the single proposal that might be automatically inserted * @return <code>true</code> if <code>proposal</code> can be inserted automatically, <code>false</code> otherwise * @since 3.1 */ private boolean canAutoInsert(ICompletionProposal proposal) { if (fContentAssistant.isAutoInserting()) { if (proposal instanceof ICompletionProposalExtension4) { ICompletionProposalExtension4 ext = (ICompletionProposalExtension4) proposal; return ext.isAutoInsertable(); } return true; // default behavior before ICompletionProposalExtension4 was introduced } return false; }