'Return widget title'

def get_plugin_title(self):

    title = _('Editor')
    if self.dockwidget:
        filename = self.get_current_filename()
        if self.dockwidget.dock_tabbar:
            if (filename and (self.dockwidget.dock_tabbar.count() < 2)):
                title += ('    -    ' + to_text_string(filename))
        else:
            title += ('    -    ' + to_text_string(filename))
    return title
