Implement copy action

This commit is contained in:
2025-02-19 11:27:45 +01:00
parent b4eac668c8
commit aea90f5a93
8 changed files with 58 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ package ovh.gasser.newshapes.ui;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ovh.gasser.newshapes.ShapeVisitor;
import ovh.gasser.newshapes.shapes.SCollection;
import ovh.gasser.newshapes.shapes.Shape;
import javax.swing.*;
@@ -15,7 +16,7 @@ public class ShapesView extends JPanel {
private final Controller controller;
private ShapeVisitor draftman;
public ShapesView(Shape model) {
public ShapesView(SCollection model) {
this.model = model;
this.controller = new Controller(this, model);
}