org.openide.DialogDescriptor dd = new org.openide.DialogDescriptor (
panel,
NbBundle.getMessage(ClojureWatchesActionsProvider.class, "CTL_New_Watch_Dialog_Title") // NOI18N
// NOI18N
);
dd.setHelpCtx (new HelpCtx ("debug.new.watch"));
Dialog dialog = DialogDisplayer.getDefault ().createDialog (dd);
dialog.setVisible (true);
dialog.dispose ();
if (dd.getValue () != org.openide.DialogDescriptor.OK_OPTION) return;