Home > Groovy, SWT > Things to know about SWT, and groovy builders Part 2

Things to know about SWT, and groovy builders Part 2

i’ve extended the documentation for SWT builder and put better structure into it with a ToC to those who may copy it.

however i’m still fighting with some bugs/issues especially at the mo with bind, that i have not fully resolved.  I’ll add an additional post once i get that bottomed out

see latest in attached word file Wills Groovy SWT tutorial v0.3

this is somewhat work in progress at now at v0.3

Categories: Groovy, SWT
  1. marceld
    March 5, 2013 at 1:31 pm

    Hey Will,

    this is a nice documentation, big thank you for that. I’m also diggin’ into SWTBuilder right now. Mostly everything works, but I’m really curious about one special topic: how do you integrate custom widgets, which are not registered as factory to the Builder? Let’s say I want to create a new Wizard. If I wanted to change the button names (Finish, Cancel etc.) of the WizardDialog, I normally would subclass the WizardDialog class and override the method which is creating the buttons. So, I have a custom WizardDialog class with the overriden method. How would I integrate this custom widget into SWTBuilder?

    • March 11, 2013 at 7:15 pm

      builds not complete yet – however the SWT builder doesnt stop you adding your own code in closures on the build and essentially if the get the returned node – you can still write your own logic within the builder to use that node – thats the great thing about the builder concept – it lets you do a bit of a blend

      whilst i was getting my head round /fixing a number of things – i’ve essentially done that in situ in my local build. what i need to do is refactor it as an extension so you can clearly see the elements i’ve addedd corrected without changing the base.

      the next thing is see if i can find an owner to put those suggestions back on as improvment – but i’ve got a working position in between till i get the time to tidy up

  1. No trackbacks yet.

Leave a comment