RefactoringRope/Refactoring.py

changeset 106
b2b2107b8047
parent 103
2d77b3afc98f
child 116
50cb62506ab2
equal deleted inserted replaced
105:45872a13d197 106:b2b2107b8047
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

eric ide

mercurial