public class ShapeEditPart extends AbstractGraphicalEditPart
public class RectangleFigure extends RectangleFigure public RectangleFigure() setBackgroundColor(ColorConstants.lightBlue); setForegroundColor(ColorConstants.blue); setBorder(new LineBorder(1)); eclipse gef tutorial
editor/ShapeEditor.java :
org.eclipse.core.runtime org.eclipse.ui org.eclipse.draw2d org.eclipse.gef org.eclipse.jface org.eclipse.swt org.eclipse.ui.ide Define the data structure. eclipse gef tutorial
– Base class for all shapes: