def is_enabled(self, group=-1, index=-1, path_type='path'):
        """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


###############################
# Sort
###############################
dataset/ETHPy150Open facelessuser/TabsExtra/tabs_extra.py/TabsExtraFilePathCommand.is_enabled/original