本文整理汇总了Java中org.eclipse.jface.text.contentassist.ICompletionProposalExtension5类的典型用法代码示例。如果您正苦于以下问题:Java ICompletionProposalExtension5类的具体用法?Java ICompletionProposalExtension5怎么用?Java ICompletionProposalExtension5使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICompletionProposalExtension5类属于org.eclipse.jface.text.contentassist包,在下文中一共展示了ICompletionProposalExtension5类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: run
import org.eclipse.jface.text.contentassist.ICompletionProposalExtension5; //导入依赖的package包/类
public void run()
{
final ICompletionProposalExtension5 proposal = getCurrentProposalEx();
Job job = new Job(JFaceTextMessages.getString("AdditionalInfoController.job_name")) //$NON-NLS-1$
{
protected IStatus run(IProgressMonitor monitor)
{
Object info;
try
{
info = proposal.getAdditionalProposalInfo(monitor);
}
catch (RuntimeException x)
{
/*
* XXX: This is the safest fix at this point so close to end of 3.2. Will be revisited when
* fixing https://bugs.eclipse.org/bugs/show_bug.cgi?id=101033
*/
return new Status(IStatus.WARNING, "com.aptana.ui.epl", IStatus.OK, "", x); //$NON-NLS-1$ //$NON-NLS-2$
}
setInfo((ICompletionProposal) proposal, info);
return new Status(IStatus.OK, "com.aptana.ui.epl", IStatus.OK, "", null); //$NON-NLS-1$ //$NON-NLS-2$
}
};
job.schedule();
}
示例2: isExt5
import org.eclipse.jface.text.contentassist.ICompletionProposalExtension5; //导入依赖的package包/类
private boolean isExt5(ICompletionProposal p)
{
return p instanceof ICompletionProposalExtension5;
}
示例3: getCurrentProposalEx
import org.eclipse.jface.text.contentassist.ICompletionProposalExtension5; //导入依赖的package包/类
ICompletionProposalExtension5 getCurrentProposalEx()
{
Assert.isTrue(fCurrentProposal instanceof ICompletionProposalExtension5);
return (ICompletionProposalExtension5) fCurrentProposal;
}