Remove no images dialog, just run the wizard when case is created

This commit is contained in:
adam-m 2012-03-16 09:29:30 -04:00
parent 1506ecfcd0
commit cbc0e4044f

View File

@ -715,21 +715,12 @@ public class Case {
* a dialog offering to add one. * a dialog offering to add one.
*/ */
private static void noRootObjectsNotification() { private static void noRootObjectsNotification() {
final NotifyDescriptor nd = new NotifyDescriptor(
"This case contains no images. Would you like to add one?",
"No images in case", NotifyDescriptor.YES_NO_OPTION,
NotifyDescriptor.INFORMATION_MESSAGE,
null,
NotifyDescriptor.YES_OPTION);
SwingUtilities.invokeLater(new Runnable() { SwingUtilities.invokeLater(new Runnable() {
@Override @Override
public void run() { public void run() {
if (DialogDisplayer.getDefault().notify(nd) == NotifyDescriptor.YES_OPTION) { final AddImageAction action = Lookup.getDefault().lookup(AddImageAction.class);
final AddImageAction action = Lookup.getDefault().lookup(AddImageAction.class); action.actionPerformed(null);
action.actionPerformed(null);
}
} }
}); });
} }