类org.eclipse.jface.text.contentassist.ICompletionProposalExtension4源码实例Demo

下面列出了怎么用org.eclipse.jface.text.contentassist.ICompletionProposalExtension4的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: APICloud-Studio   文件: CompletionProposalPopup.java
/**
 * 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;
}
 
 类所在包
 类方法
 同包方法