327 @param col column the item was activated in (integer) |
327 @param col column the item was activated in (integer) |
328 """ |
328 """ |
329 if self.noResults: |
329 if self.noResults: |
330 return |
330 return |
331 |
331 |
|
332 vm = e5App().getObject("ViewManager") |
|
333 |
332 if itm.parent(): |
334 if itm.parent(): |
333 fn = Utilities.normabspath(itm.data(0, self.filenameRole)) |
335 fn = Utilities.normabspath(itm.data(0, self.filenameRole)) |
334 lineno = itm.data(0, self.lineRole) |
336 lineno = itm.data(0, self.lineRole) |
335 index = itm.data(0, self.indexRole) |
337 index = itm.data(0, self.indexRole) |
336 error = itm.data(0, self.errorRole) |
338 error = itm.data(0, self.errorRole) |
337 |
339 |
338 vm = e5App().getObject("ViewManager") |
|
339 vm.openSourceFile(fn, lineno) |
340 vm.openSourceFile(fn, lineno) |
340 editor = vm.getOpenEditor(fn) |
341 editor = vm.getOpenEditor(fn) |
341 |
342 |
342 if itm.data(0, self.warningRole): |
343 if itm.data(0, self.warningRole): |
343 editor.toggleWarning(lineno, 0, True, error) |
344 editor.toggleWarning(lineno, 0, True, error) |
344 else: |
345 else: |
345 editor.toggleSyntaxError(lineno, index, True, error, show=True) |
346 editor.toggleSyntaxError(lineno, index, True, error, show=True) |
346 else: |
347 else: |
347 fn = Utilities.normabspath(itm.data(0, self.filenameRole)) |
348 fn = Utilities.normabspath(itm.data(0, self.filenameRole)) |
348 vm = e5App().getObject("ViewManager") |
|
349 vm.openSourceFile(fn) |
349 vm.openSourceFile(fn) |
350 editor = vm.getOpenEditor(fn) |
350 editor = vm.getOpenEditor(fn) |
351 for index in range(itm.childCount()): |
351 for index in range(itm.childCount()): |
352 citm = itm.child(index) |
352 citm = itm.child(index) |
353 lineno = citm.data(0, self.lineRole) |
353 lineno = citm.data(0, self.lineRole) |
356 if citm.data(0, self.warningRole): |
356 if citm.data(0, self.warningRole): |
357 editor.toggleWarning(lineno, 0, True, error) |
357 editor.toggleWarning(lineno, 0, True, error) |
358 else: |
358 else: |
359 editor.toggleSyntaxError( |
359 editor.toggleSyntaxError( |
360 lineno, index, True, error, show=True) |
360 lineno, index, True, error, show=True) |
|
361 |
|
362 editor = vm.activeWindow() |
|
363 editor.updateVerticalScrollBar() |
361 |
364 |
362 @pyqtSlot() |
365 @pyqtSlot() |
363 def on_showButton_clicked(self): |
366 def on_showButton_clicked(self): |
364 """ |
367 """ |
365 Private slot to handle the "Show" button press. |
368 Private slot to handle the "Show" button press. |
402 if file not in errorFiles: |
405 if file not in errorFiles: |
403 editor = vm.getOpenEditor(file) |
406 editor = vm.getOpenEditor(file) |
404 editor.clearSyntaxError() |
407 editor.clearSyntaxError() |
405 editor.clearFlakesWarnings() |
408 editor.clearFlakesWarnings() |
406 |
409 |
|
410 editor = vm.activeWindow() |
|
411 editor.updateVerticalScrollBar() |
|
412 |
407 def __clearErrors(self, files): |
413 def __clearErrors(self, files): |
408 """ |
414 """ |
409 Private method to clear all error and warning markers of |
415 Private method to clear all error and warning markers of |
410 open editors to be checked. |
416 open editors to be checked. |
411 |
417 |