What do you not feel good about? Detecting the custom tabs like this? There needs to be special logic when the editor chooses to provide its own tabs, and this seemed like a reasonable way of detecting it. Let me know if you have a better way to do this.