def is_enabled(self, command, group=-1, index=-1, args={}):
        """Determine if command should be enabled."""

        enabled = False
        if group >= 0 and index >= 0:
            view = get_group_view(self.window, group, index)
            if view is not None:
                enabled = view.file_name() is not None
        return enabled
dataset/ETHPy150Open facelessuser/TabsExtra/tabs_extra.py/TabsExtraFileCommand.is_enabled/original