本文整理匯總了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