collection.add(j, editedDataFactory);
activeContext.getUndo().addChange(ActionMessages.getString("EditQueryAction.Text"),
new DataSourceEditUndoEntry(j, storedFactory, editedClone));
report.notifyNodeChildRemoved(originalDataFactory);
report.notifyNodeChildAdded(editedDataFactory);
parentWindow.setCursor(Cursor.getDefaultCursor());
if (editingActiveQuery == false)
{
// if we are editing a query that is not the one the current report uses, do not mess around with it.