Text reimplementation without SWTBot dependencies