On Mon, Oct 27, 2014 at 11:18 AM, Max Leske <[email protected]> wrote:

>
> > On 27.10.2014, at 11:16, [email protected] wrote:
> >
> > I have a TCXTBSButton trait that I want to add to a couple of WA classes.
> >
> > Now, I do not want to touch the WA classes as it would mean that I have
> to maintain them on my own, which isn't good.
> >
> > So, how do I add a trait to a class without changing its code?
> > Programmatically adding a trait to a class on package/configuration load.
> >
> > For methods, I can do a *myownpackage so that things will be saved there.
> >
> > But for traits, I do not know how.
> >
> > Help :-)
>
> I don’t think there’s any other option than doing a postload and
> recompiling those classes. Obviously, the packages of those classes will
> become dirty.
>

Annoying. I do not want them dirty.

In the meantime, I have subclassed the TagBrush I need and added the trait
there.
But that's a pain for all other features that do use the superclass as such.

Phil


>
> >
> > Phil
>
>
>

Reply via email to