return null;
}
if (element instanceof SubReport && reportElement instanceof AbstractRootLevelBand)
{
final AbstractRootLevelBand re = (AbstractRootLevelBand) reportElement;
final int count = re.getSubReportCount() - 1;
for (int i = 0; i < count; i++)
{
final SubReport sr = re.getSubReport(i);
if (sr == element)
{
re.removeSubreport(sr);
re.addSubReport(i + 1, sr);
return new CompoundUndoEntry
(new BandedSubreportEditUndoEntry(re.getObjectID(), i, sr, null),
new BandedSubreportEditUndoEntry(re.getObjectID(), i - 1, null, sr));
}
}
}
final int count = reportElement.getElementCount() - 1;