Improve getText methods and remove Eclipse compiler warnings.
Authored by: hagru 2014-04-11
Parent: [r177]
Child: [r179]