1
package dk.aau.cs.gui.undo;
3
import dk.aau.cs.gui.DrawingSurface;
4
import dk.aau.cs.gui.components.PetriNetElementControl;
6
public class AddPetriNetControlCommand extends Command {
7
private PetriNetElementControl control;
8
private DrawingSurface surface;
10
public AddPetriNetControlCommand(PetriNetElementControl control,
11
DrawingSurface surface) {
12
this.surface = surface;
13
this.control = control;
18
control.addChildControls();
20
// surface.surfaceChanged();
25
control.removeChildControls();
26
surface.remove(control);
27
// surface.surfaceChanged();