Automatic Associations [message #186260] |
Mon, 12 May 2008 10:09 |
Eclipse User |
|
|
|
Originally posted by: lunaris.bluemoon.gmail.com
Hi,
I have been struggling for a while now on creating an association that
will dynamically configure itself depending on its endpoints. For
example, the connecting of two elements with particular stereotypes may
yield an aggregation relationship, whilst two other elements may produce
a generalization.
I have tried to create this behaviour in a couple of ways with no real
success, specifically:
1. Adding a custom EditPolicyProvider which installs a policy
subclassing either GraphicalEditPolicy or CreationEditPolicy onto the
tool in which I am interested.
2. Adding a listener that subclasses ResourceSetListenerImpl that waits
for associations to be added before trying to configure them.
Either way I end up at a point where I am in the wrong place to execute
the command or request necessary; that or I simply do not know GMF well
enough to take advantage of it.
Has anyone achieved a similar solution?
Many thanks,
Will
|
|
|
Powered by
FUDForum. Page generated in 0.02915 seconds