'Documented as an old display method, but still gets called via tests etc
This allows us to format the data shown in the central pane via the "eye" icon.'

def display_data(self, trans, data, preview=False, filename=None, to_ext=None, size=None, offset=None, **kwd):

    if ((filename is not None) and (filename != 'index')):
        return Data.display_data(self, trans, data, preview, filename, to_ext, size, offset, **kwd)
    if (self.file_ext == 'blastdbn'):
        title = 'This    is    a    nucleotide    BLAST    database'
    elif (self.file_ext == 'blastdbp'):
        title = 'This    is    a    protein    BLAST    database'
    elif (self.file_ext == 'blastdbd'):
        title = 'This    is    a    domain    BLAST    database'
    else:
        title = 'This    is    a    BLAST    database.'
    msg = ''
    try:
        handle = open(data.file_name, 'rU')
        msg = handle.read().strip()
        handle.close()
    except Exception:
        pass
    if (not msg):
        msg = title
    return ('<html><head><title>%s</title></head><body><pre>%s</pre></body></html>' % (title, msg))
