The text displayed in the first and second section of a combined fragment
widget are stored in the text variable, which was not set by the
ClassGeneralPage::apply method. This commit fixes this method's logic
BUG: 382279, 382282
Also in this change:
* Removes unused include directives
* Minor refactoring for readability