Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » Listening to changes in the BPMN Diagram(Task name modifications do not send notifications to listener)
Listening to changes in the BPMN Diagram [message #652680] Sat, 05 February 2011 08:18 Go to next message
Nidhi  is currently offline Nidhi Friend
Messages: 92
Registered: December 2009


I am trying to integrate with the BPMN modeler. My domain model is also an EMF model.

I wanted to listen to changes in the BPMN EMF model and correspondingly make changes to my domain model.
I created my EContentAdapter to listen to these changes:


However whenever the name of an Activity (Task) is modified I dont get any notifications. I only get notifications on Add and Remove.

I am not sure why this is happening. What exactly am I missing?

Also I want to listen to changes on even those BPMN models (editor) that are already opened (from my previous run).
What would be the best way to achieve this.

Any help would be really appreciated.

Thanks a lot,
Re: Listening to changes in the BPMN Diagram [message #754335 is a reply to message #652680] Wed, 02 November 2011 08:28 Go to previous message Missing nameFriend
Messages: 41
Registered: July 2011
* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#activate()
public void activate()
add the following code in your root editpart so that all your models get registered for model changes and correspondingly call your refrshvisuals

if( !isActive() )
getTarget().eAdapters().add( this );

* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#deactivate()
public void deactivate()
if( isActive() )
getTarget().eAdapters().remove( this );
Previous Topic:Yaoqiang BPMN Editor
Next Topic:Removing a palette entry from Palette?
Goto Forum:

Current Time: Tue Jul 14 22:42:19 GMT 2020

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

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

Back to the top