private void setTokens(String name, IModulesManager manager) throws IOException, Exception, CoreException {
if (TRACE_COMPILED_MODULES) {
Log.log(IStatus.INFO, ("Compiled modules: getting info for:" + name), null);
}
final IPythonNature nature = manager.getNature();
AbstractShell shell = AbstractShell.getServerShell(nature, AbstractShell.COMPLETION_SHELL);
synchronized (shell) {
Tuple<String, List<String[]>> completions = shell.getImportCompletions(name, manager.getCompletePythonPath(
nature.getProjectInterpreter(), nature.getRelatedInterpreterManager())); //default
if (TRACE_COMPILED_MODULES) {
Log.log(IStatus.INFO, ("Compiled modules: " + name + " file: " + completions.o1 + " found: "
+ completions.o2.size() + " completions."), null);