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
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".

I made ecore file of my meta model and generate codes.

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?

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:
Previous Topic:[CDO ] Web GUI
Next Topic:Class cast exception trying to modify values in a property sheet
Goto Forum:

Current Time: Tue May 26 18:30:16 GMT 2020

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

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

Back to the top