Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to change the model and refresh the diagram when a new Property Section is defined
how to change the model and refresh the diagram when a new Property Section is defined [message #148800] Mon, 03 September 2007 12:50 Go to next message
Eclipse UserFriend
Originally posted by: bmoros.um.es

Hello everybody,

I have added a new section to the Properties View to insert the value of the
AttributeInstance class. The AttributeInstance class has a reference to the
Value class which is really the one that includes the value attribute.

The new PropertySection (AttributeValuePropertySection) is shown when an
AttributeInstance is selected to change the value if it is needed (the file
attached shows an example). Adding a ModifyListener to the Text containing
the value I am able to modify the model by executing a SetCommand, but the
GMF diagram is not refreshed accordingly. The setValue notification never
arrives to the AttributeInstanceEditPart to be refreshed.

I have read the article "The Eclipse Tabbed Properties View". The code for a
new LabelSection shows that when the text is modified, the properties of the
element have to change by using the getAdapter method and setPropertyValue.
I have tried this approach with no success, I have not found that methods. I
wonder if this approach is implemented, are the model and the diagram
refreshed automatically? is it wrong using the SetComand execution?

Please, any hint will be wellcome!!

Thank you in advance.

Bego
  • Attachment: snapshot.JPG
    (Size: 13.92KB, Downloaded 95 times)
Re: how to change the model and refresh the diagram when a new Property Section is defined [message #149936 is a reply to message #148800] Tue, 11 September 2007 05:19 Go to previous message
Eclipse UserFriend
Hello Begoa,

I've implemented similar functionality using LabelMapping + custom parser
provided via ParserProvider. My cusom parser implements ISemanticParser with
corresponding methods used by generated code of the ???EditPart.

-----------------
Alex Shatalin
Previous Topic:Trouble using multiple creation tools on a same node
Next Topic:GMF Europa M7
Goto Forum:
  


Current Time: Sun May 25 06:09:29 EDT 2025

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

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

Back to the top