Eclipse Gef Tutorial -
editor/ShapeEditor.java :
@Override public void activate() super.activate(); ((Shape) getModel()).addPropertyChangeListener(evt -> refreshVisuals()); eclipse gef tutorial
public class ShapeEditor extends GraphicalEditorWithFlyoutPalette private Diagram diagram; public ShapeEditor() setEditDomain(new DefaultEditDomain(this)); editor/ShapeEditor
– similar. 4. Create the Figure (Draw2D) Visual representation. ((Shape) getModel()).addPropertyChangeListener(evt ->
public abstract class Shape public static final String LOCATION_PROP = "location"; public static final String SIZE_PROP = "size";
public class RectangleShape extends Shape @Override public void accept(ShapeVisitor visitor) visitor.visit(this);