final ConsumableActionEvent ce = (ConsumableActionEvent) e;
ce.consume();
}
final Window window = LibSwingUtil.getWindowAncestor(getReportDesignerContext().getView().getParent());
final SettingsDialog settingsDialog;
if (window instanceof Frame)
{
settingsDialog = new SettingsDialog((Frame) window);
}
else if (window instanceof Dialog)
{
settingsDialog = new SettingsDialog((Dialog) window);
}
else
{
settingsDialog = new SettingsDialog();
}
settingsDialog.pack();
settingsDialog.performEdit(getReportDesignerContext());
}