2271 aw = vm.activeWindow() |
2271 aw = vm.activeWindow() |
2272 if aw is not None: |
2272 if aw is not None: |
2273 filename = aw.getFileName() |
2273 filename = aw.getFileName() |
2274 if filename is not None: |
2274 if filename is not None: |
2275 vm.openSourceFile(filename, aw.getCursorPosition()[0] + 1) |
2275 vm.openSourceFile(filename, aw.getCursorPosition()[0] + 1) |
|
2276 |
|
2277 def reportChanged(self, filename, oldSource): |
|
2278 """ |
|
2279 Public slot to report some changed sources. |
|
2280 |
|
2281 @param filename file name of the changed source (string) |
|
2282 @param oldSource source code before the change (string) |
|
2283 """ |
|
2284 if self.__project and self.__e5project.isProjectFile(filename): |
|
2285 try: |
|
2286 rope.base.libutils.report_change( |
|
2287 self.__project, filename, oldSource) |
|
2288 except RuntimeError: |
|
2289 # this could come from trying to do PyQt4/PyQt5 mixed stuff |
|
2290 # simply ignore it |
|
2291 pass |