The editor will trigger certain event hooks on various operations, all editor hooks start with onEditor
prefix.
Ideally you will just do simple operations in your event callbacks, so not to trigger an infinite loop of events.
Try not to call editor API functions in your extension event hook.
Naming conventions for the events (examples):
onEditorAuthChanged(user, chosenDomain)
Called when the authorization status changed, with user and domain info
onEditorObjectSelectionChanged()
Called when object selection changed
onEditorInspectorHeaderGui(inspectorInfo)
Called when the inspector draws the header part of itself. inspectorInfo contains data about the inspector instance. See Customizing Inspector
Work in progress, more will be added.