Skip to main content



      Home
Home » Modeling » Graphiti » AutoUpdate Text associated to a ConnectionDecorator(AutoUpdate Text associated to a ConnectionDecorator)
AutoUpdate Text associated to a ConnectionDecorator [message #985951] Fri, 16 November 2012 15:40 Go to next message
Eclipse UserFriend
Hello, first of all, congratulations for all the work which you have done!

I am using Graphiti and I am not able to resolve a problem.

Need: I have two elements connected by a connection. I need to show a text associated to the business object linked to the connection, and being able to edit the text.

My approach: I am using patterns. So I have created a class which extends AbstractConnectionPattern as the tutorial says. But I need edit the text, and this class does not support methods for Direct Editing Feature, so I have to create new classes which implement AbstractUpdateFeature and AbstractDirectEditingFeature, and combine patterns with "classical features".

The problem: Everything works fine except AutoUpdate. When I modify the value associated to the text in the domain-model, graphiti does not update it automatically en the diagram, I have to update manually.

Any idea?

Thanks in advance!
Re: AutoUpdate Text associated to a ConnectionDecorator [message #986743 is a reply to message #985951] Wed, 21 November 2012 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Juan,

usually the update is triggered from within the direct editing feature, see
the TutorialRenameEClassFeature. That could be missing in your case.

Michael
Re: AutoUpdate Text associated to a ConnectionDecorator [message #1001313 is a reply to message #986743] Wed, 16 January 2013 08:18 Go to previous messageGo to next message
Eclipse UserFriend
First of all, I am sorry for answering so late.

I did what you said and it works! But is not automatical, the option it is placed on contextual menu. I would like graphiti to update automatically the diagram. Now, graphity detects a change and notifies it (sets text colour in red), but you have to update manually, clicking with right button and selecting update.
Re: AutoUpdate Text associated to a ConnectionDecorator [message #1001790 is a reply to message #1001313] Thu, 17 January 2013 06:23 Go to previous message
Eclipse UserFriend
Juan,

have a look at the isAutoUpdateAt... methods IDiagramTypeProvider. They
should enable you to change that default behavior.

Michael
Previous Topic:invoke Create Feature
Next Topic:new Diagram
Goto Forum:
  


Current Time: Wed Jul 23 08:41:34 EDT 2025

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

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

Back to the top