Perhaps if you need to tell if you're in "edit mode" it might be worthwhile extending an editor class to do what you need? Alternatively, if you want to display something in edit mode you might just want to hook it in as a beacon.