Fix implementation of do-swing

Signed-off-by: Daniel Borchmann <daniel.borchmann@mailbox.tu-dresden.de>
Cosmetics for context-editor

Signed-off-by: Daniel Borchmann <daniel.borchmann@mailbox.tu-dresden.de>