KongaDialog dialog = createDialog();
dialog.setVisible(true);
}
private KongaDialog createDialog() {
final KongaDialog dialog = new KongaDialog(ApplicationUi.getAppWinFrame(), "Test In Progress", true);
BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 10);
layoutMessage(layout);
Action continueAction = createActionWrapper(ResumeDebuggingAction.ID, continueHandler, dialog);
Action stopAction = createActionWrapper(StopDebuggingAction.ID, stopHandler, dialog);
stopAction.putValue(Action.NAME, "Stop Current Test and Continue With New Test");
JButton cancelButton = dialog.createCancelButton();
BoxBuilder buttons = BoxBuilder.horizontal();
buttons.setUseSmallSizedIconsForActions(true);
buttons.addAllWithSpace(10, stopAction, continueAction).glue().add(cancelButton);
layout.south(buttons);
layout.setBorder(Empty.border(10));
layout.asContentPaneFor(dialog);
dialog.pack();
dialog.setLocationRelativeTo(null);
dialog.setResizable(false);
dialog.manageLocation();
dialog.setDefaultButton(stopAction);
return dialog;
}