diff -r d242ba11a04c -r a03f2be1997b PluginRefactoringRope.py --- a/PluginRefactoringRope.py Sun Mar 22 17:33:44 2015 +0100 +++ b/PluginRefactoringRope.py Sun Mar 22 18:58:31 2015 +0100 @@ -26,7 +26,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "4.0.5" +version = "4.0.6" className = "RefactoringRopePlugin" packageName = "RefactoringRope" internalPackages = "rope" @@ -506,7 +506,7 @@ if self.__currentEditor is not None: if self.__currentEditor.isListActive(): self.__currentEditor.cancelList() - completions = self.__caObject.getCompletions(self.__currentEditor) + completions = self.getCompletionsList(self.__currentEditor, False) if len(completions) == 0 and \ self.getPreferences("ShowQScintillaCompletions"): # try QScintilla autocompletion @@ -516,6 +516,18 @@ self.__currentEditor.showUserList(EditorAutoCompletionListID, completions) + def getCompletionsList(self, editor, context): + """ + Public method to get a list of possible completions. + + @param editor reference to the editor object, that called this method + (QScintilla.Editor) + @param context flag indicating to autocomplete a context (boolean) + @return list of possible completions (list of strings) + """ + completions = self.__caObject.getCompletions(editor) + return completions + def __editorAboutToBeSaved(self, filename): """ Private slot to get the old contents of the named file.