|Re: Changing Figures at runtime [message #475309]
||Mon, 01 September 2008 08:14
| Tatiana Fesenko
Registered: July 2009
Have you heard about UML2 Tools (http://wiki.eclipse.org/MDT-UML2Tools) -
open-source editor for UML models generated by GMF?
We (UML2Tools developers) faced the same problem implementing association.
To solve the problem we added custom decoration (AssociationDecoration class)
to source and target of an association link. The decoration is painted in
accordance with properties of the association ends. In order to handle changes
of Association#isNavigable() property additional model listener was added
UML2Tools is free and open-source, so you can easily use its hints in your
own diagram editor. Besides, the good news is that we are implementing functionality
to make UML2 Tools artifacts easier to reuse. the feature should be ready
PS I copied the question to UML2 Tools newsgroup.
> Hi folks,
> I've got a little problem when trying to change my connection
> at runtime.. I want to imitate an UML2 associtation between 2
> which can have:
> - one arrow at the target (when "targetNavigable" is "true")
> - onw arrow at the source (when "sourceNavigable" is "true")
> - or both (when both is "true")
> is anyone out there who can give me at least a little hint? ;-)
> furthermore.. maybe there are more examples about creating an "UML"
> look-a-like editor?
> Alois Leitner
Powered by FUDForum
. Page generated in 0.12172 seconds