package pipe.actions.edit;

import pipe.actions.GuiAction;

import java.awt.event.ActionEvent;

public class CutAction extends GuiAction {

    public CutAction(final String name, final String tooltip,
                     final String keystroke) {
        super(name, tooltip, keystroke);
    }

    @Override
    public void actionPerformed(final ActionEvent actionEvent) {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
package pipe.actions.edit;

import pipe.actions.GuiAction;
import pipe.controllers.PetriNetController;
import pipe.controllers.PipeApplicationController;

import java.awt.event.ActionEvent;

public class CutAction extends GuiAction {
    private final PipeApplicationController applicationController;

    public CutAction(final String name, final String tooltip,
                     final String keystroke, PipeApplicationController applicationController) {
        super(name, tooltip, keystroke);
        this.applicationController = applicationController;
    }

    @Override
    public void actionPerformed(final ActionEvent actionEvent) {
        PetriNetController petriNetController = applicationController.getActivePetriNetController();
        petriNetController.copySelection();
        petriNetController.deleteSelection();
    }
}
Add cut action