Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Automatic Associations
Automatic Associations [message #186260] Mon, 12 May 2008 10:09
Eclipse UserFriend
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
Previous Topic:Inner Figure not movable
Next Topic:Problem:Automatically create a node!!!???
Goto Forum:
  


Current Time: Mon Sep 23 11:19:07 GMT 2024

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

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

Back to the top