def _validate_environment(self, environment):
        if environment:
            current_version = environment.get_current_version()
            if not current_version:
                # there is no version so warn the user
                error_message = 'Please save the current scene with Version ' \
                                'Creator first!!!'
                QtGui.QMessageBox.critical(
                    self,
                    "Error",
                    error_message,
                    QtGui.QMessageBox.Ok
                )
                self.close()
                raise RuntimeError(error_message)

        return environment
Virtual method to be implemented by subclasses to check time field.
dataset/ETHPy150Open eoyilmaz/anima/anima/ui/version_updater.py/MainDialog._validate_environment--crossover with--dataset/ETHPy150Open lyda/chkcrontab/chkcrontab_lib.py/CronLineTimeAction._CheckTimeField