当前位置: 首页>>代码示例>>Java>>正文


Java ICompletionProposalExtension5类代码示例

本文整理汇总了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();
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:27,代码来源:AdditionalInfoController.java

示例2: isExt5

import org.eclipse.jface.text.contentassist.ICompletionProposalExtension5; //导入依赖的package包/类
private boolean isExt5(ICompletionProposal p)
{
	return p instanceof ICompletionProposalExtension5;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:5,代码来源:AdditionalInfoController.java

示例3: getCurrentProposalEx

import org.eclipse.jface.text.contentassist.ICompletionProposalExtension5; //导入依赖的package包/类
ICompletionProposalExtension5 getCurrentProposalEx()
{
	Assert.isTrue(fCurrentProposal instanceof ICompletionProposalExtension5);
	return (ICompletionProposalExtension5) fCurrentProposal;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:6,代码来源:AdditionalInfoController.java


注:本文中的org.eclipse.jface.text.contentassist.ICompletionProposalExtension5类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。