Break the actions out into their own classes

* didn't realize how useful the getAdapter method in TextEditor was
until now