本文整理汇总了Java中org.eclipse.jdt.internal.ui.text.java.ContentAssistHistory.RHSHistory类的典型用法代码示例。如果您正苦于以下问题:Java RHSHistory类的具体用法?Java RHSHistory怎么用?Java RHSHistory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RHSHistory类属于org.eclipse.jdt.internal.ui.text.java.ContentAssistHistory包,在下文中一共展示了RHSHistory类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRHSHistory
import org.eclipse.jdt.internal.ui.text.java.ContentAssistHistory.RHSHistory; //导入依赖的package包/类
/**
* Returns the content assist type history for the expected type.
*
* @return the content assist type history for the expected type
*/
private RHSHistory getRHSHistory() {
if (fRHSHistory == null) {
CompletionContext context = getCoreContext();
if (context != null) {
char[][] expectedTypes = context.getExpectedTypesSignatures();
if (expectedTypes != null && expectedTypes.length > 0) {
String expected = SignatureUtil.stripSignatureToFQN(String.valueOf(expectedTypes[0]));
fRHSHistory = JavaPlugin.getDefault().getContentAssistHistory().getHistory(expected);
}
}
if (fRHSHistory == null)
fRHSHistory = JavaPlugin.getDefault().getContentAssistHistory().getHistory(null);
}
return fRHSHistory;
}
示例2: getRHSHistory
import org.eclipse.jdt.internal.ui.text.java.ContentAssistHistory.RHSHistory; //导入依赖的package包/类
/**
* Returns the content assist type history for the expected type.
*
* @return the content assist type history for the expected type
*/
private RHSHistory getRHSHistory() {
if (fRHSHistory == null) {
CompletionContext context= getCoreContext();
if (context != null) {
char[][] expectedTypes= context.getExpectedTypesSignatures();
if (expectedTypes != null && expectedTypes.length > 0) {
String expected= SignatureUtil.stripSignatureToFQN(String.valueOf(expectedTypes[0]));
fRHSHistory= JavaPlugin.getDefault().getContentAssistHistory().getHistory(expected);
}
}
if (fRHSHistory == null)
fRHSHistory= JavaPlugin.getDefault().getContentAssistHistory().getHistory(null);
}
return fRHSHistory;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:21,代码来源:JavaContentAssistInvocationContext.java