{
try
{
if (element instanceof Expression)
{
final UndoEntry undoEntry = moveExpressions(report, element);
if (undoEntry == null)
{
return false;
}
undos.add(undoEntry);
}
else if (element instanceof ParameterDefinitionEntry)
{
final UndoEntry undoEntry = moveParameters(report, element);
if (undoEntry == null)
{
return false;
}
undos.add(undoEntry);
}
else if (element instanceof DataFactory)
{
final UndoEntry undoEntry = moveDataFactories(report, element);
if (undoEntry == null)
{
return false;
}
undos.add(undoEntry);
}
else if (element instanceof RelationalGroup)
{
final UndoEntry undoEntry = moveGroup((RelationalGroup) element);
if (undoEntry == null)
{
return false;
}
undos.add(undoEntry);
}
else if (element instanceof Element)
{
final UndoEntry undoEntry = moveVisualElement(report, (Element) element);
if (undoEntry == null)
{
return false;
}
undos.add(undoEntry);