|
Re: Upgrade from GEF 3.11.0 to 5.1.0 [message #1810468 is a reply to message #1810441] |
Mon, 12 August 2019 13:46   |
|
Hi, migrating is not just changing class names. I suppose you should do a tutorial on GEF 5 before doing the migration.
Draw2d was replaced by JavaFX, i.e. you have all the JavaFX nodes and style capabilities at your disposal (e.g. to implement polyline, text flow, borders, menus, and layout). For Connections and Anchors, GEF 5 provides Connection and IAnchor (DynamicAnchor and StaticAnchor). Connections can be implemented in different ways, for example, using the anchorage-anchored mechanism. Parts can implement ITransformableContentPart, IResizableContentPart, and IBendableContentPart to get some functionality out of the box. Feedback and Handles are now parts, too. Request/Response has been dropped, you just create operations. Policy is now something different. It is init()iated and later commit()ed, resulting in an operation carrying the change data. InfiniteCanvas does support toggling a background grid and scrolling is supported by default. There is a SnapToModel with Snapping Strategies (e.g. Snap to geometry, Snap to grid). Multiple viewers can be composed, for example, to implement a palette viewer next to the content viewer.
Best regards,
Matthias
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02202 seconds