Defines the slot triggered on Framework startup.

def on_startup(self):
        """
        Defines the slot triggered on Framework startup.
        """

        LOGGER.debug("> Calling '{0}' Component Framework 'on_startup' method.".format(self.__class__.__name__))

        factory_default_script_editor_file = umbra.ui.common.get_resource_path(
            self.__factory_default_script_editor_file)
        if foundations.common.path_exists(factory_default_script_editor_file) and \
                not foundations.common.path_exists(self.__default_script_editor_file):
            shutil.copyfile(factory_default_script_editor_file, self.__default_script_editor_file)

        if foundations.common.path_exists(self.__default_script_editor_file):
            self.load_file(self.__default_script_editor_file)
        else:
            self.new_file()

        startup_script = self.__engine.parameters.startup_script
        if foundations.common.path_exists(startup_script):
            self.load_file(startup_script) and self.evaluate_script()

        self.restore_session()

        for argument in self.__engine.arguments[1:]:
            file = os.path.abspath(argument)
            if foundations.common.path_exists(file):
                os.path.isfile(file) and self.load_file(file)

        return True