PySourceViewer pySourceViewer = (PySourceViewer) viewer;
PyEdit pyEdit = pySourceViewer.getEdit();
this.indentString = pyEdit.getIndentPrefs().getIndentationString();
} else {
//happens on compare editor
this.indentString = new DefaultIndentPrefs().getIndentationString();
}
//If the completion is applied with shift pressed, do a local import. Note that the user is only actually
//able to do that if the popup menu is focused (i.e.: request completion and do a tab to focus it, instead
//of having the focus on the editor and just pressing up/down).
if ((stateMask & SWT.SHIFT) != 0) {