I would like to create a dialog without the OK/Cancel buttons. I know that if you override the createButton method, this can be achieved.
What do you think of overriding the createButtonBar method to return null if the button bar is not required at all? This would save some code.
Overriding
createButtonBaris going to produce errors if you returnnullfor the result composite as theDialogcode expects it to not be null.You can override
createButtonsForButtonBarand not create any buttons. It looks likeDialogalways checks that individual buttons exist.You can remove the space used by the buttons composite like this: