mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DialogBuilder: better assertion message
This commit is contained in:
@@ -68,7 +68,8 @@ public class DialogBuilder implements Disposable {
|
||||
}
|
||||
|
||||
private MyDialogWrapper showImpl(boolean isModal) {
|
||||
LOG.assertTrue(myTitle != null && myTitle.trim().length() != 0, String.valueOf(myTitle));
|
||||
LOG.assertTrue(myTitle != null && myTitle.trim().length() != 0,
|
||||
String.format("Dialog title shouldn't be empty or null: [%s]", myTitle));
|
||||
myDialogWrapper.setTitle(myTitle);
|
||||
myDialogWrapper.init();
|
||||
myDialogWrapper.setModal(isModal);
|
||||
|
||||
Reference in New Issue
Block a user