Performing custom operation after loading the diagram [message #638665] |
Thu, 11 November 2010 22:24  |
Eclipse User |
|
|
|
Hi all,
I would like to know what is the best way to perform custom operations after loading the
diagram.
For example, after loading the diagram I would like to change ContainerShape or
GraphicAlgorithm properties.
Thanks.
Regards,
|
|
|
|
|
|
|
|
Re: Performing custom operation after loading the diagram [message #639960 is a reply to message #639891] |
Thu, 18 November 2010 09:31  |
Eclipse User |
|
|
|
Hi Michael,
The PlatformGraphicsAlgorithms seems to be the way to go. It works for me.
Thank you.
Vincent
On 18/11/2010 5:00 AM, Michael Wenz wrote:
> Hi Vincent,
>
> Graphiti initializes the FigureCanvas only when it really starts drawing the
> diagram, so you cannot rely on the Canvas being initialized in any feature
> or any hook from the editor. Modifying pictogram model data is possible of
> course (including properties at these model objects), which I understood as
> your usecase.
>
> If you want to access the canvas you might have a look at the so-called
> PlatformGraphicsAlgorithms that can be used to provide custom shapes that
> are drawn using standard GEF means.
>
> Michael
>
|
|
|
Powered by
FUDForum. Page generated in 0.03851 seconds