use of org.eclipse.linuxtools.internal.systemtap.ui.ide.editors.stp.proposals.STPFunctionCompletionProposal in project linuxtools by eclipse.
the class STPCompletionProcessor method getFunctionCompletions.
private ICompletionProposal[] getFunctionCompletions(int offset, String prefix) {
TreeNode[] completionData = stpMetadataSingleton.getFunctionCompletions(prefix);
ICompletionProposal[] result = new ICompletionProposal[completionData.length];
for (int i = 0; i < completionData.length; i++) {
result[i] = new STPFunctionCompletionProposal(completionData[i], prefix.length(), offset);
}
return result;
}
Aggregations