use getPaneView rather than getPane
Add and use Editor::observeSelections() and ::observeCursors()