218 Public slot to open the rope configuration file in an editor. |
218 Public slot to open the rope configuration file in an editor. |
219 |
219 |
220 @param idString id for which to get the configuration file |
220 @param idString id for which to get the configuration file |
221 @type str |
221 @type str |
222 """ |
222 """ |
|
223 from eric7.QScintilla.MiniEditor import MiniEditor |
|
224 |
223 configfile = self.__ropeConfigFile(idString) |
225 configfile = self.__ropeConfigFile(idString) |
224 if configfile: |
226 if configfile: |
225 if os.path.exists(configfile): |
227 if os.path.exists(configfile): |
226 from eric7.QScintilla.MiniEditor import MiniEditor |
|
227 |
|
228 editor = MiniEditor(configfile) |
228 editor = MiniEditor(configfile) |
229 editor.show() |
229 editor.show() |
230 editor.editorSaved.connect(lambda: self.__configChanged(idString)) |
230 editor.editorSaved.connect(lambda: self.__configChanged(idString)) |
231 self.__editors[idString] = editor |
231 self.__editors[idString] = editor |
232 return |
232 return |
277 self.tr( |
277 self.tr( |
278 "The path of the rope configuration file could not be determined." |
278 "The path of the rope configuration file could not be determined." |
279 ).format(configfile), |
279 ).format(configfile), |
280 ) |
280 ) |
281 |
281 |
282 def requestCompletions(self, editor, context, acText): |
282 def requestCompletions(self, editor, context, acText): # noqa: U100 |
283 """ |
283 """ |
284 Public method to request a list of possible completions. |
284 Public method to request a list of possible completions. |
285 |
285 |
286 @param editor reference to the editor object, that called this method |
286 @param editor reference to the editor object, that called this method |
287 @type Editor |
287 @type Editor |
334 if "Error" not in result: |
334 if "Error" not in result: |
335 editor = self.__vm.getOpenEditor(result["FileName"]) |
335 editor = self.__vm.getOpenEditor(result["FileName"]) |
336 if editor is not None: |
336 if editor is not None: |
337 editor.completionsListReady(names, result["CompletionText"]) |
337 editor.completionsListReady(names, result["CompletionText"]) |
338 |
338 |
339 def getCallTips(self, editor, pos, commas): |
339 def getCallTips(self, editor, pos, commas): # noqa: U100 |
340 """ |
340 """ |
341 Public method to calculate calltips. |
341 Public method to calculate calltips. |
342 |
342 |
343 @param editor reference to the editor object, that called this method |
343 @param editor reference to the editor object, that called this method |
344 @type Editor |
344 @type Editor |
605 |
605 |
606 @param result dictionary containing the result data |
606 @param result dictionary containing the result data |
607 @type dict |
607 @type dict |
608 """ |
608 """ |
609 with contextlib.suppress(ImportError): |
609 with contextlib.suppress(ImportError): |
610 from eric7.QScintilla.Editor import ReferenceItem |
610 from eric7.QScintilla.Editor import ReferenceItem # noqa: I101 |
611 |
611 |
612 if "Error" not in result: |
612 if "Error" not in result: |
613 # ignore errors silently |
613 # ignore errors silently |
614 references = result["GotoReferencesList"] |
614 references = result["GotoReferencesList"] |
615 euuid = result["Uuid"] |
615 euuid = result["Uuid"] |