Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Diagram Update Problem
GMF Diagram Update Problem [message #675320] Tue, 31 May 2011 07:27
Elmander  is currently offline Elmander Friend
Messages: 1
Registered: May 2011
Junior Member
We have an EMF model and its corresponding GMF diagram. We can synchronize model and the diagram by updating model using command stack. But when the update is not trigged from GUI thread, gmf editor and whole software is locked after a while.

This happens when we receive periodic messages from network which includes model update information and when we update the model accordingly. We can put that code (where we receive network message and update the model accordingly) in gui thread as follows where we receive the message, and that solves the problem. But that part of the code should not have a dependency to gui. But when we dont do this, gmf editor and the whole software is locked.

What can be the solution for this problem?

public void receiveNetworkMessage (){
    Display.getDefault().asyncExec(new Runnable() {
	public void run() {

Software Developer
Previous Topic:Renaming node with double click
Next Topic:Generating Eclipse view instead of editor
Goto Forum:

Current Time: Sun Mar 07 19:08:11 GMT 2021

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

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

Back to the top