To make this a real diagram editor, you need connections.
The View is the visual representation on the screen. In GEF Classic, this is built using , a lightweight graphics library built on top of SWT.
I'll guide you through building a simple (rectangle, ellipse, etc.) from scratch. eclipse gef tutorial
@Override protected PaletteRoot getPaletteRoot() // return palette with creation tools (optional) return null; // for minimal
This tutorial is a deep dive into , often referred to as "Draw2D" and "GEF (MVC)". While Eclipse has introduced newer technologies like GEF4 and Sirius, understanding the classic GEF MVC pattern remains critical for maintaining legacy plugins and understanding fundamental diagramming concepts. To make this a real diagram editor, you need connections
Now, open Eclipse, create a new plug-in project, and start coding your own diagram tool. Happy diagramming!
@Override protected void initializeGraphicalViewer() diagram = new Diagram(); diagram.addChild(new RectangleNode()); getGraphicalViewer().setContents(diagram); I'll guide you through building a simple (rectangle,
Would you like me to:
We will focus primarily on GEF (Classic/MVC) , as it remains the industry standard for creating full-featured editing tools within the Eclipse IDE.