I think I answered my own question, but would definitely appreciate any feedback. For the benefit of others this is what I did:
function ColdFirePanel() {} ColdFirePanel.prototype = Obj.extend(Firebug.ActivablePanel, { name: panelName, title: Locale.$STR("ColdFusion"), // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Initialization initialize: function() { Firebug.ActivablePanel.initialize.apply(this, arguments); Options.addListener(this); if (FBTrace.DBG_COLDFIRE) FBTrace.sysout("coldfire; ColdFirePanel.initialize"); }, destroy: function(state) { Firebug.ActivablePanel.destroy.apply(this, arguments); Options.removeListener(this); if (FBTrace.DBG_COLDFIRE) FBTrace.sysout("coldfire; ColdFirePanel.destroy"); }, updateOption: function(name, value) { // Disable this panel if the Net panel is disabled if (name == "net.enableSites" && value == false) { if (FBTrace.DBG_COLDFIRE) FBTrace.sysout("coldfire; ColdFirePanel.disablePanel"); var cfPanelType = Firebug.getPanelType(panelName); Firebug.PanelActivation.disablePanel(cfPanelType); } }, onActivationChanged: function(enable) { if (FBTrace.DBG_COLDFIRE || FBTrace.DBG_ACTIVATION) FBTrace.sysout("coldfire; ColdFirePanel.onActivationChanged; enable: " + enable); if(enable) { var netPanelType = Firebug.getPanelType("net"); Firebug.PanelActivation.enablePanel(netPanelType); Firebug.ColdFireModule.addObserver(this); } else { Firebug.ColdFireModule.removeObserver(this); } }, --Nathan On Thu, Jan 19, 2012 at 12:13 PM, Nathan Mische <nmis...@gmail.com> wrote: > As a follow up to this, are there any APIs to listen to the Net > panel's activation change so I can disable my panel when/if the Net > panel is disabled? Or do I just need to add a prefs observer and > listen for the appropriate topic and data? (I looked at > panelActivation.js and didn't see anything.) > > Thanks, > > --Nathan > > -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@googlegroups.com To unsubscribe from this group, send email to firebug+unsubscr...@googlegroups.com For more options, visit this group at https://groups.google.com/forum/#!forum/firebug