Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to implement a label propagation?
How to implement a label propagation? [message #1700067] Mon, 29 June 2015 22:54 Go to next message
eunjung park is currently offline eunjung parkFriend
Messages: 72
Registered: April 2015
Member
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 22:57]

Report message to a moderator

Re: How to implement a label propagation? [message #1700323 is a reply to message #1700067] Wed, 01 July 2015 20:42 Go to previous message
Leonid Ripeynih is currently offline Leonid RipeynihFriend
Messages: 150
Registered: February 2012
Senior Member
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 Oct 23 18:02:53 GMT 2019

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

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

Back to the top