this.newConfig = newConfig;
}
public void undo(final ReportRenderContext renderContext)
{
final HierarchicalConfiguration configuration =
(HierarchicalConfiguration) renderContext.getMasterReportElement().getConfiguration();
final Iterator newEntries = newConfig.entrySet().iterator();
while (newEntries.hasNext())
{
final Map.Entry entry = (Map.Entry) newEntries.next();
final String o = (String) entry.getKey();
configuration.setConfigProperty(o, null);
}
final Iterator oldEntries = oldConfig.entrySet().iterator();
while (oldEntries.hasNext())
{
final Map.Entry entry = (Map.Entry) oldEntries.next();
final String o = (String) entry.getKey();
configuration.setConfigProperty(o, (String) entry.getValue());
}
renderContext.getMasterReportElement().notifyNodePropertiesChanged();
}