Project/ProjectBrowser.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2525
8b507a9a2d40
parent 2769
8cbebde7a984
child 3057
10516539f238
--- a/Project/ProjectBrowser.py	Mon Jul 08 21:47:26 2013 +0200
+++ b/Project/ProjectBrowser.py	Mon Jul 08 22:36:10 2013 +0200
@@ -304,6 +304,18 @@
             elif self.project.isProjectInterface(fn):
                 self.piBrowser.selectFile(fn)
     
+    def handleEditorLineChanged(self, fn, lineno):
+        """
+        Public slot to handle the editorLineChanged signal.
+        
+        @param fn filename of the changed file (string)
+        @param lineno one based line number of the item (integer)
+        """
+        if Preferences.getProject("FollowEditor") and \
+           Preferences.getProject("FollowCursorLine"):
+            if self.project.isProjectSource(fn):
+                self.psBrowser.selectFileLine(fn, lineno)
+    
     def getProjectBrowsers(self):
         """
         Public method to get references to the individual project browsers.

eric ide

mercurial