Skip to main content



      Home
Home » Modeling » EMF » How to implement a label propagation?
How to implement a label propagation? [message #1700067] Mon, 29 June 2015 18:54 Go to next message
Eclipse UserFriend
Hi all,

I'm trying to implement a label propagation mechanism which means that if a element's value is changed, then corresponding parent's label will be changed automatically depending on children siblings' relationship.

For example, in the following diagram,
if the labels of "confidentiality" and "integrity" will be changed into "satisficed", then the label of their parent "security" will be automatically changed into "satisficed".
index.php/fa/22345/0/

I made ecore file of my meta model and generate codes.
index.php/fa/22347/0/

I read articles about adapter and notification of EMF, I could understand the ways a little, but I don't know where I should triger fireNotifyChanged() to invoke parents and register a listener.
By the way, I'm using Sirius for viewing models.
Could anybody help me?

Thanks,
Best Regards,
Eunjung Park

[Updated on: Mon, 29 June 2015 18:57] by Moderator

Re: How to implement a label propagation? [message #1700323 is a reply to message #1700067] Wed, 01 July 2015 16:42 Go to previous message
Eclipse UserFriend
This should help: http://eclipsesource.com/blogs/2013/01/29/emf-itemprovider-magic/
Previous Topic:[CDO ] Web GUI
Next Topic:Class cast exception trying to modify values in a property sheet
Goto Forum:
  


Current Time: Wed Jul 23 21:28:08 EDT 2025

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

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

Back to the top