<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __set_window_title(self):
 """ Sets the Component window title. """


        if self.has_editor_tab():
            windowTitle = "{0} - {1}".format(self.__default_window_title, self.get_current_editor().file)
        else:
            windowTitle = "{0}".format(self.__default_window_title)

        LOGGER.debug("> Setting 'Script Editor' window title to '{0}'.".format(windowTitle))
        self.setWindowTitle(windowTitle)