Hi there, Just a small thing I have noticed:
name : myPanel, should be name : "myPanel", Otherwise it seems to be correct. Pedro Simonetti. 2010/9/15 tan <[email protected]>: > Hi again > > No, it did not work > > Here is an outline of the code > > Thomas > > FBL.ns(function() { with ( FBL ) { > > function MyPanel() {} > MyPanel.prototype = extend( Firebug.ActivablePanel, > { > name : myPanel, > title : "My Panel", > > initialize : function() > { > Firebug.ActivablePanel.initialize.apply( this, arguments ); > }, > > shutdown : function() > { > Firebug.ActivableModule.shutdown.apply( this, arguments ); > }, > > destroy : function( state ) > { > Firebug.unregisterUIListener(this); > Firebug.ActivablePanel.destroy.apply( this, arguments ); > }, > > enablePanel: function(module) > { > Firebug.ActivablePanel.enablePanel.apply( this, arguments ); > }, > > disablePanel: function(module) > { > Firebug.ActivablePanel.disablePanel.apply( this, arguments ); > } > }); > > > Firebug.MyPanelModel = extend( Firebug.ActivableModule, > { > initialize: function() > { > Firebug.ActivableModule.initialize.apply( this, arguments ); > }, > > initContext: function( context, persistedState ) > { > Firebug.ActivableModule.initContext.apply( this, arguments ); > }, > > showContext: function( browser, context ) > { > Firebug.ActivableModule.showContext.apply( this, arguments ); > }, > > loadedContext : function( context ) > { > }, > > showPanel : function( browser, panel ) > { > }, > > addStyleSheet : function( doc ) > { > }, > > reattachContext : function( browser, context ) > { > }, > }); > > > /* Domplate code */ > > /* > Registration > */ > Firebug.registerPanel( MyPanel ); > Firebug.registerActivableModule( Firebug.MyPanelModel ); > > }}); > > > > On Sep 14, 10:59 pm, John J Barton <[email protected]> > wrote: >> On Sep 14, 12:04 pm, tan <[email protected]> wrote: >> >> > Hi >> >> > Are there any information about how to use the ActivablePanel? >> >> > My guess right now is that using ActivablePanel would create a panel >> > that can be activated globally (Global: Activate/Disable All Panels) >> >> > My first naive try was to use this >> >> > MyPanel.prototype = extend( Firebug.ActivablePanel, >> >> If you implement initialize() then you need to propagate it to the >> parent: >> Firebug.ActivablePanel.initialize.apply(this, arguments); >> >> And you need to register your new panel: >> Firebug.registerPanel(NetPanel); >> >> Does this help? >> jjb >> >> > ... >> >> > But I guess it needs some more configuration ;) >> >> > I have tried to look in the Fb source, but have not quite figured it >> > out yet. >> >> > So, the question is how do we use the Activation thing? >> >> > Thanks in advance >> >> > Best regards, >> > Thomas > > -- > You received this message because you are subscribed to the Google Groups > "Firebug" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/firebug?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
