The TextEditor also needs to import the module import dwt.dwthelper.utils; Compiles and works but placing the mouse over some of the bold italics etc buttons causes a segmentation fault