{
EditParametersAction.performEditSubReportParameters(getReportDesignerContext());
}
if (selection instanceof DataFactory)
{
final EditQueryAction action = new EditQueryAction();
action.setReportDesignerContext(getReportDesignerContext());
action.performEdit((DataFactory) selection, null);
return;
}
if (selection instanceof ReportQueryNode == false)
{
return;
}
final ReportQueryNode theQuery = (ReportQueryNode) selection;
if (theQuery.isAllowEdit() == false)
{
return;
}
final EditQueryAction action = new EditQueryAction();
action.setReportDesignerContext(getReportDesignerContext());
action.performEdit(theQuery.getDataFactory(), theQuery.getQueryName());
}
catch (ReportDataFactoryException e1)
{
UncaughtExceptionsModel.getInstance().addException(e1);
}