dialog = new DialogImpl(UiUtils.getActiveWindow(), getDialogTitle());
addDialogButtons(dialog.getDefaultLayout());
}
private void addDialogButtons(final BorderLayoutBuilder layout) {
actions.setDialog(dialog, new UiCanvas() {
@Override
public void display(Component c) {
if (c instanceof JComponent) {
((JComponent) c).setBorder(Empty.border(10, 0, 10, 0));