GMF Property View Refresh Problem [message #138505] |
Fri, 22 June 2007 02:30  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03462 seconds