Reputation: 1115
I have to add a lot of controls to a composite (600+). This takes a lot of time. Is there a way to do this more efficiently ? Maybe suppress some events ?
I do the add dynamically, based on some user input (button click, checkbox check/uncheck, etc.)
Thank you
Upvotes: 1
Views: 274
Reputation: 14437
Try disabling intermediate redraws:
parentComposite.setRedraw(false);
try {
// perform all needed work
} finally {
parentComposite.setRedraw(true);
}
This can speed up the time it takes to do ui work considerably in some cases.
Upvotes: 1
Reputation: 4617
My first hint would be to use a wizard to spread the controls throughout various screens.
Upvotes: 0