}
public Component getElementCellEditorComponent(final ReportElementEditorContext rootBandRenderComponent,
final ReportElement value)
{
final ReportDesignerContext context = rootBandRenderComponent.getDesignerContext();
final int contextCount = context.getReportRenderContextCount();
for (int i = 0; i < contextCount; i++)
{
final ReportRenderContext rrc = context.getReportRenderContext(i);
if (rrc.getReportDefinition() == value)
{
context.setActiveContext(rrc);
return null;
}
}
final SubReport report = (SubReport) value;
try
{
context.addSubReport(rootBandRenderComponent.getRenderContext(), report);
}
catch (ReportDataFactoryException e1)
{
UncaughtExceptionsModel.getInstance().addException(e1);
}