Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Property View Refresh Problem
GMF Property View Refresh Problem [message #138505] Fri, 22 June 2007 02:30 Go to next message
Eclipse UserFriend
Hi,

I have this strange problem, When i create a new project and go edit
elements properties in the property sheet, the property sheet is updated
properly with the new value. But if i close and reopen the same project,
the update fails, the property sheet entry shows the old value even when
changed. When i debugged the code, i could find that, once the model fires
a notification, the control enters the editParts "HandleNotification"
method (This happens for the first time when the project is newly
created). But, when i close and reopen the same project, the notification
is not caught by the editParts "HandleNotification" method. Can this be
the problem. If so, can you help me out by giving some suggestions how to
go about fixing this.


Regards
Balraj
Re: GMF Property View Refresh Problem [message #138922 is a reply to message #138505] Fri, 22 June 2007 12:07 Go to previous message
Eclipse UserFriend
Your edit part should register itself with DiagramEventBroker, @see
GraphicalEditPart#addListenerFilter. I'd start with trying to figure out why
doesn't this happen.

Artem

"Balraj Kannan" <balraj.kannan@hp.com> wrote in message
news:14a200b5fdad7cecb7039560279756a8$1@www.eclipse.org...
> Hi,
>
> I have this strange problem, When i create a new project and go edit
> elements properties in the property sheet, the property sheet is updated
> properly with the new value. But if i close and reopen the same project,
> the update fails, the property sheet entry shows the old value even when
> changed. When i debugged the code, i could find that, once the model fires
> a notification, the control enters the editParts "HandleNotification"
> method (This happens for the first time when the project is newly
> created). But, when i close and reopen the same project, the notification
> is not caught by the editParts "HandleNotification" method. Can this be
> the problem. If so, can you help me out by giving some suggestions how to
> go about fixing this.
>
> Regards
> Balraj
>
Previous Topic:Retrieving connection information
Next Topic:Question on generated GMF model
Goto Forum:
  


Current Time: Tue Sep 23 12:58:06 EDT 2025

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

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

Back to the top