001package org.biopax.paxtools.command;
002
003import org.biopax.paxtools.model.BioPAXElement;
004import org.biopax.paxtools.model.Model;
005
006import java.util.Set;
007
008/**
009 */
010public class RemoveCommand extends AbstractAddRemoveCommand
011{
012
013        public RemoveCommand(Model model, Set<BioPAXElement> bpes)
014        {
015                super(model, bpes);
016        }
017
018        @Override
019        protected void undoAction(BioPAXElement bpe)
020        {
021                model.add(bpe);
022        }
023
024        @Override
025        protected void redoAction(BioPAXElement bpe)
026        {
027                model.remove(bpe);
028        }
029
030
031        public String getPresentationName()
032        {
033                return "Remove objects from model";
034        }
035
036        public String getUndoPresentationName()
037        {
038                return "Add objects to model";
039        }
040
041        public String getRedoPresentationName()
042        {
043                return "Re-remove objects from model";
044        }
045
046
047
048}