Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to support Association Classes using GMF?
How to support Association Classes using GMF? [message #1279122] Fri, 28 March 2014 09:00
Scott Finnie is currently offline Scott FinnieFriend
Messages: 94
Registered: October 2011
Member
Trying to figure out how to support Association Classes using GMF. I need to produce diagrams along the lines below:


|--------|             |--------|
| Class1 |-------------| Class2 |
|--------|       |     |--------|

                 |

         |-------|-----------|
         | Association Class |
         |-------------------|




I can create the classes fine (`Node` Figures), and similarly simple associations. However: I'm not sure how to handle the Association Class. I think I want:

- A `Connection` to represent the main Association (solid line)
- A `Connection Anchor` on the mid-point of the Association Connection
- Another `Connection` joining the Association Class to the mid point `Connection Anchor`

I don't want to use a `Node` in the middle of the Association since that will create an unwanted bend point.

So specific questions:

1. Is the approach above reasonable/sensible?
2. Is there a better way to do it?
3. Any pointers to existing implementations? This must have been solved for each of the many GEF/GMF-based UML editors but some protracted googling hasn't surfaced anything.

Thanks.
Previous Topic:Custom Figure not showing in generated editor
Next Topic:Programmatically expand of PaletteCompartmentEntry
Goto Forum:
  


Current Time: Thu Apr 25 11:55:48 GMT 2024

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

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

Back to the top