Bringt output window to front upon analysis completion

This addresses the following problems:
1. exception if a non-C++ project check is attempted - a neat message is output instead
2. code duplication
3. if the output window is not brought to front the analysis output is not visible - now in cases when analysis is run from menu (not on saving documents because that would likely be annoying) the output window is brought to front.