Exemple #1
0
    def dump_metrics_report(self, column):
        """
        Dump the metrics report of the given column.

        :param column: an AnalysisReport.MetricsReportColumn
        """
        model = self.metrics_report.get_model()
        return dump_tree_model(model, column)
Exemple #2
0
    def dump_filters(self, filter_kind):
        """
        Dump the filters editor corresponding to the given kind.

        e.g: >>> report.dump_filters(AnalysisReport.FilterKind.TOOL)
             >>> [['codepeer', '5', True], ['gnatcheck', '1', True]]
        """
        model = self.__get_filters_tree(filter_kind).get_model()

        return dump_tree_model(model, -1)
Exemple #3
0
 def model(self):
     """
     Return the tree model of what is currently displayed in the Outline
     """
     return dump_tree_model(self.tree.get_model(), 1)