{
return;
}
final Component parent = designerContext.getView().getParent();
final Window window = LibSwingUtil.getWindowAncestor(parent);
final EmbeddedWizard dialog;
if (window instanceof JDialog)
{
dialog = new EmbeddedWizard((JDialog) window);
}
else if (window instanceof JFrame)
{
dialog = new EmbeddedWizard((JFrame) window);
}
else
{
dialog = new EmbeddedWizard();
}
// final MasterReport report = new MasterReport();
// report.setDataFactory(new CompoundDataFactory());
// report.setQuery(null);
try
{
final MasterReport def = (MasterReport) dialog.run(null);
if (def == null)
{
return;
}