'Refresh outline explorer panel'

def _refresh_outlineexplorer(self, index=None, update=True, clear=False):

    oe = self.outlineexplorer
    if (oe is None):
        return
    if (index is None):
        index = self.get_stack_index()
    enable = False
    if self.data:
        finfo = self.data[index]
        if finfo.editor.is_python():
            enable = True
            oe.setEnabled(True)
            oe.set_current_editor(finfo.editor, finfo.filename, update=update, clear=clear)
    if (not enable):
        oe.setEnabled(False)
