'Shows the objects found by the core.
:param w3af: the core
:author: Facundo Batista <facundobatista =at= taniquetil.com.ar>'

def __init__(self, _w3af):

    super(FoundObjectsGuardian, self).__init__()
    self.w3af = _w3af
    self.set_tooltip_text(_('Amount    of    discovered    vulnerabilities    and    generated    shells'))
    self.info = _Guarded('info')
    self.vuln = _Guarded('vuln')
    self.shll = _Guarded('shell')
    self.objcont = {w3af.core.data.kb.vuln: self.vuln, w3af.core.data.kb.info: self.info}
    self.pack_start(self.info.icon, False, False, padding=2)
    self.pack_start(self.info.label, False, False, padding=2)
    self.pack_start(self.vuln.icon, False, False, padding=2)
    self.pack_start(self.vuln.label, False, False, padding=2)
    self.pack_start(self.shll.icon, False, False, padding=2)
    self.pack_start(self.shll.label, False, False, padding=2)
    kb.kb.add_observer(VulnerabilityCountObserver(self))
    self.show_all()
