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