@@ -0,0 +1,1735 @@
+/*%0A * Created on 03.01.2005%0A *%0A * TODO To change the template for this generated file go to%0A * Window - Preferences - Java - Code Style - Code Templates%0A */%0Apackage net.sf.jabref.groups;%0A%0Aimport java.util.*;%0A%0Aimport javax.swing.undo.AbstractUndoableEdit;%0A%0A/**%0A * @author zieren%0A * %0A * TODO To change the template for this generated type comment go to Window -%0A * Preferences - Java - Code Style - Code Templates%0A */%0Apublic class UndoableChangeAssignment extends AbstractUndoableEdit %7B%0A    private final Set m_previousAssignmentBackup;%0A    private final Set m_currentAssignmentBackup;%0A    private final Set m_currentAssignmentReference;%0A%0A    /**%0A     * %0A     * @param previousAssignment%0A     *            The set of assigned entries before the change (this is%0A     *            copied).%0A     * %0A     * @param currentAssignment%0A     *            A reference to the actual set of assignments%0A     */%0A    public UndoableChangeAssignment(Set previousAssignment,%0A            Set currentAssignment) %7B%0A        m_previousAssignmentBackup = new HashSet(previousAssignment);%0A        m_currentAssignmentReference = currentAssignment;%0A        m_currentAssignmentBackup = new HashSet(currentAssignment);%0A    %7D%0A%0A    public String getUndoPresentationName() %7B%0A        return %22Undo: (de)assign entries%22;%0A    %7D%0A%0A    public String getRedoPresentationName() %7B%0A        return %22Redo: (de)assign entries%22;%0A    %7D%0A%0A    public void undo() %7B%0A        super.undo();%0A        m_currentAssignmentReference.clear();%0A        m_currentAssignmentReference.addAll(m_previousAssignmentBackup);%0A    %7D%0A%0A    public void redo() %7B%0A        super.redo();%0A        m_currentAssignmentReference.clear();%0A        m_currentAssignmentReference.addAll(m_currentAssignmentBackup);%0A    %7D%0A%7D%0A

undo changes in the assignment of entries to an ExplicitGroup