Overriding commands in plugins

Michael Gliwinski Michael.Gliwinski at henderson-group.com
Fri Mar 12 16:31:15 GMT 2010


On Wednesday 10 Mar 2010 01:19:37 Robert Collins wrote:
> On Wed, 2010-03-10 at 10:06 +1100, Martin Pool wrote:
> > > I noticed the command hooks yesterday, from what I understand they
> >
> > are
> >
> > > actually run when the command object is created, yes?  Would that be
> >
> > valid to
> >
> > > wrap the run method in a hook?
> >
> > As Robert says, you could do it, but it seems a bit of a blunt
> > instrument.
> 
> I would say, if you want your change to apply to GUI's, and other
> conceptual things like 'bzr down-thread' in a loom (that builds on
> switch) - then you should be hooking into MutableTree or Branch or
> whatnot. If you specifically want to affect the CLI, then hooking into a
> specific Command object or wrapping one is appropriate.
> 
> We have plenty of examples of both, and many of them have turned out
> well :)
> 
> -Rob
> 

Sorry for the delay, I got pulled away from this project temporarily, had to 
deal with something else.  Will be back on it next week.

Cheers!

-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  It is intended solely for the addressee and access to the email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed  in the governing client engagement leter or contract.
If you have received this email in error please notify support at henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************




More information about the bazaar mailing list