ISourceViewer viewer = getTextViewer(commandLine, projectName, fileName);
File file = new File(ProjectUtils.getFilePath(projectName, fileName));
IProject project = ProjectUtils.getProject(projectName);
IPySyntaxHighlightingAndCodeCompletionEditor editor =
new PyEditor(project, file, viewer);
PyContentAssistant assistant = new PyContentAssistant();
PythonCompletionProcessor processor =
new PythonCompletionProcessor(editor, assistant);
ICompletionProposal[] results =
processor.computeCompletionProposals(viewer, offset);
return results;