RefactoringRope/Refactoring.py

changeset 148
5cfe8e02a9c4
parent 147
3f8a995f6e49
child 150
81aa22f5d2e6
equal deleted inserted replaced
147:3f8a995f6e49 148:5cfe8e02a9c4
1989 except Exception: 1989 except Exception:
1990 # simply ignore them 1990 # simply ignore them
1991 return 1991 return
1992 1992
1993 if location is not None: 1993 if location is not None:
1994 e5App().getObject("ViewManager").openSourceFile( 1994 try:
1995 location.resource.real_path, location.lineno, next=True) 1995 e5App().getObject("ViewManager").openSourceFile(
1996 location.resource.real_path, location.lineno, addNext=True)
1997 except TypeError:
1998 # backward compatibility; < 17.03
1999 e5App().getObject("ViewManager").openSourceFile(
2000 location.resource.real_path, location.lineno, next=True)
1996 else: 2001 else:
1997 e5App().getObject("UserInterface").statusBar().showMessage( 2002 e5App().getObject("UserInterface").statusBar().showMessage(
1998 self.tr('No definition found'), 5000) 2003 self.tr('No definition found'), 5000)
1999 2004
2000 def __queryImplementations(self): 2005 def __queryImplementations(self):

eric ide

mercurial