Isolate the tools/menus system from the editor-specific code