Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Upgrade from GEF 3.11.0 to 5.1.0(Unable to find substitute classes from 5.1.0 )
Upgrade from GEF 3.11.0 to 5.1.0 [message #1810441] Mon, 12 August 2019 06:21 Go to next message
girijanandan nucha is currently offline girijanandan nuchaFriend
Messages: 25
Registered: January 2019
Location: Bangalore, India
Junior Member
Hi All,

I have a piece of code written using GEF 3.11.0.
I want to upgrade to 5.1.0, but i am unable to find which classes of 5.1.0 to use in place of following list of classes of 3.11.0 version.

Any help is very much appreciated.

List of 3.11.0 Classes to which i am unable to find 5.1.0 counter part

org.eclipse.draw2d.AbsoluteBendpoint
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.ColorConstants
org.eclipse.draw2d.ConnectionAnchor
org.eclipse.draw2d.ConnectionEndpointLocator
org.eclipse.draw2d.Figure
org.eclipse.draw2d.FlowLayout
org.eclipse.draw2d.FreeformLayer
org.eclipse.draw2d.geometry.Dimension
org.eclipse.draw2d.geometry.Insets
org.eclipse.draw2d.graph.DirectedGraph
org.eclipse.draw2d.graph.EdgeList
org.eclipse.draw2d.graph.NodeList
org.eclipse.draw2d.Graphics
org.eclipse.draw2d.GridLayout
org.eclipse.draw2d.IFigure
org.eclipse.draw2d.Label
org.eclipse.draw2d.LayoutManager
org.eclipse.draw2d.LineBorder
org.eclipse.draw2d.MarginBorder
org.eclipse.draw2d.PolygonDecoration
org.eclipse.draw2d.PolylineConnection
org.eclipse.draw2d.PolylineConnection
org.eclipse.draw2d.text.FlowPage
org.eclipse.draw2d.text.TextFlow
org.eclipse.draw2d.ToolbarLayout
org.eclipse.gef.commands.Command
org.eclipse.gef.commands.CommandStack
org.eclipse.gef.ContextMenuProvider
org.eclipse.gef.DefaultEditDomain
org.eclipse.gef.EditDomain
org.eclipse.gef.editparts.AbstractConnectionEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.ScalableFreeformRootEditPart
org.eclipse.gef.editparts.ZoomManager
org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy
org.eclipse.gef.editpolicies.ContainerEditPolicy
org.eclipse.gef.editpolicies.SnapFeedbackPolicy
org.eclipse.gef.editpolicies.XYLayoutEditPolicy
org.eclipse.gef.GraphicalEditPart
org.eclipse.gef.GraphicalViewer
org.eclipse.gef.palette.PaletteRoot
org.eclipse.gef.Request
org.eclipse.gef.requests.CreateRequest
org.eclipse.gef.requests.GroupRequest
org.eclipse.gef.SnapToGeometry
org.eclipse.gef.SnapToGrid
org.eclipse.gef.SnapToHelper
org.eclipse.gef.ui.actions.ActionRegistry
org.eclipse.gef.ui.actions.GEFActionConstants
org.eclipse.gef.ui.actions.ToggleGridAction
org.eclipse.gef.ui.actions.ToggleSnapToGeometryAction
org.eclipse.gef.ui.actions.UpdateAction
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer
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 Go to previous messageGo to next message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
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
Re: Upgrade from GEF 3.11.0 to 5.1.0 [message #1810682 is a reply to message #1810468] Fri, 16 August 2019 04:35 Go to previous messageGo to next message
girijanandan nucha is currently offline girijanandan nuchaFriend
Messages: 25
Registered: January 2019
Location: Bangalore, India
Junior Member
Hi Matthias,

Thanks for the response.
I will start upgrading based n your comment. I will post here in case i get blocked.

Thanks,
Giri
Re: Upgrade from GEF 3.11.0 to 5.1.0 [message #1814094 is a reply to message #1810682] Tue, 03 September 2019 13:44 Go to previous messageGo to next message
girijanandan nucha is currently offline girijanandan nuchaFriend
Messages: 25
Registered: January 2019
Location: Bangalore, India
Junior Member
Hi Matthias,

As part of above upgrade, I am trying to find something similar as draw2d.Figure element. Can you please suggest what to use ?

Thanks,
Giri
Re: Upgrade from GEF 3.11.0 to 5.1.0 [message #1814199 is a reply to message #1814094] Thu, 05 September 2019 14:21 Go to previous messageGo to next message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
Sure, instead of SWT and Draw2d, GEF 5.x uses JavaFX for the visualisation.

Best regards,
Matthias
Re: Upgrade from GEF 3.11.0 to 5.1.0 [message #1814265 is a reply to message #1814199] Sat, 07 September 2019 09:12 Go to previous message
girijanandan nucha is currently offline girijanandan nuchaFriend
Messages: 25
Registered: January 2019
Location: Bangalore, India
Junior Member
Ok, I will try to use JavaFX. Thank you very much.

Regards,
Giri
Previous Topic:How to enable "Edit" actions in GraphicalEditor?
Next Topic:GEF 5.2.0 is released!
Goto Forum:
  


Current Time: Thu Mar 28 17:20:00 GMT 2024

Powered by FUDForum. Page generated in 0.03571 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top