Changing Figures at runtime [message #202996] |
Fri, 22 August 2008 07:04 |
Eclipse User |
|
|
|
Originally posted by: itleita.gmx.at
Hi folks,
I've got a little problem when trying to change my connection decorations
at runtime.. I want to imitate an UML2 associtation between 2 entities.
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?
thanks,
Alois Leitner
|
|
|
Re: Changing Figures at runtime [message #203079 is a reply to message #202996] |
Fri, 22 August 2008 11:57 |
Eclipse User |
|
|
|
Originally posted by: itleita.gmx.at
damn.. i really don't know how to do this..
although i think it is very simple, isn't it?
i don't even know how the changes from the graphical figure get to the
model..
...
do anyone know what i'm trying to explain?
i want to do something like the following:
when a property changed in the properties sheet:
<code>
if(!XXXImpl.isSourceNavigable) {
XXXFigure.setSourceDecoration(null);
} else XXXFigure.setSourceDecoration(...);
if(!XXXIml.isTargetNavigable) {
XXXFigure.setSourceDecoration(null);
} else XXXFigure.setSourceDecoration(...);
</code>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03005 seconds