@classmethod
def globalStatusBar(cls):
    """
        Class method to get a reference to a global status bar.
        
        The global status bar is the status bar of the main window. If
        no such window exists and the web browser was called from the eric IDE,
        the status bar of the IDE is returned.
        
        @return reference to the global status bar
        @rtype QStatusBar
        """
    if cls.BrowserWindows:
        return cls.BrowserWindows[0].statusBar()
    else:
        return None
