Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Object Property change is not reflected in the diagram
Object Property change is not reflected in the diagram [message #222506] Tue, 24 March 2009 23:56 Go to next message
julsat is currently offline julsatFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I have a problem with making changes to the property view of the object
displayed on a diagram. Here is the case: OutPort node holds
non-containment references to InPorts (OutPort.TargetPorts). I have a link
mapping on TargetPorts. When I create InPort and OutPort instances and
links between them with tools, all the property changes are being added
just fine, but when I go from the other end - manually change properties
of OutPort instance from the Property View - and remove references from
TargetPorts, links on the diagram are not being deleted. I'd like to make
everything consistent - either delete the link on property change or
disable TargetPorts property editor in Property View. Any suggestions how
to do that?

Thanks.
Re: Object Property change is not reflected in the diagram [message #223273 is a reply to message #222506] Mon, 30 March 2009 15:07 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello julsat,

This question was asked in a newsgroup dozen of times – try to looking for
an existing threads. In general the problem is – diagram update (implemented
in CanonicalEditPolicy generated for main diagram element) will not be called
on corresponding property change, so you have to modify generated code for
a link source EditPart and listen for an appropriate EMF notification. Manually
written code should call CanonicalEditPolicy.refresh() to update diagram.

-----------------
Alex Shatalin
Previous Topic:how to link node from compartment to another node
Next Topic:Display Items in Nodes Compartments although they're not containted in the Node
Goto Forum:
  


Current Time: Sat Apr 20 16:10:27 GMT 2024

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

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

Back to the top