Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py

branch
Py2 comp.
changeset 3080
6c0a430b19df
parent 3065
070b35dde35e
parent 3062
9de9373da5bb
child 3142
55030c09e142
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Wed Nov 13 23:30:59 2013 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Sat Nov 16 10:06:28 2013 +0100
@@ -324,6 +324,7 @@
         QApplication.processEvents()
         
         self.__resetStatistics()
+        self.__clearErrors()
         
         if save:
             self.__fileOrFileList = fn
@@ -654,7 +655,7 @@
             if code == "E901":
                 editor.toggleSyntaxError(lineno, 0, True, message, True)
             else:
-                editor.toggleFlakesWarning(
+                editor.toggleWarning(
                     lineno, True, message, warningType=editor.WarningStyle)
     
     @pyqtSlot()
@@ -682,12 +683,12 @@
             fn = Utilities.normabspath(itm.data(0, self.filenameRole))
             vm.openSourceFile(fn, 1)
             editor = vm.getOpenEditor(fn)
-            editor.clearFlakesWarnings()
+            editor.clearStyleWarnings()
             for cindex in range(itm.childCount()):
                 citm = itm.child(cindex)
                 lineno = citm.data(0, self.lineRole)
                 message = citm.data(0, self.messageRole)
-                editor.toggleFlakesWarning(
+                editor.toggleWarning(
                     lineno, True, message, warningType=editor.WarningStyle)
         
         # go through the list again to clear warning markers for files,
@@ -701,7 +702,7 @@
         for file in openFiles:
             if not file in errorFiles:
                 editor = vm.getOpenEditor(file)
-                editor.clearFlakesWarnings()
+                editor.clearStyleWarnings()
     
     @pyqtSlot()
     def on_statisticsButton_clicked(self):
@@ -808,7 +809,7 @@
         openFiles = vm.getOpenFilenames()
         for file in openFiles:
             editor = vm.getOpenEditor(file)
-            editor.clearFlakesWarnings()
+            editor.clearStyleWarnings()
     
     @pyqtSlot()
     def on_fixButton_clicked(self):

eric ide

mercurial