Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » edit of label changes model, but label doesn't refresh
edit of label changes model, but label doesn't refresh [message #103161] Mon, 12 February 2007 13:05 Go to next message
Eclipse UserFriend
I can edit the label of a node and the model attribute that the label is
derived from changes to the new value. but when the in-place cell
editor closes the displayed label is still the old value. when I reedit
that label it in-place sell editor shows the new value, when I escape
the cell editor the label reverts to the old text! I put a break point
in the handleNotificationEvent method of the EditPart for the node but
it never traps, so that method is never called when the label is
changed. How do I force a refresh of the label after I've edited it?
Re: edit of label changes model, but label doesn't refresh [message #103231 is a reply to message #103161] Mon, 12 February 2007 13:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

Hi John,

did you modify the model code / does the EObject send notifications?

John Yotka schrieb:
> I can edit the label of a node and the model attribute that the label is
> derived from changes to the new value. but when the in-place cell
> editor closes the displayed label is still the old value. when I reedit
> that label it in-place sell editor shows the new value, when I escape
> the cell editor the label reverts to the old text! I put a break point
> in the handleNotificationEvent method of the EditPart for the node but
> it never traps, so that method is never called when the label is
> changed. How do I force a refresh of the label after I've edited it?
Re: edit of label changes model, but label doesn't refresh [message #103263 is a reply to message #103231] Mon, 12 February 2007 14:31 Go to previous message
Eclipse UserFriend
Jan Herriger wrote:
> Hi John,
>
> did you modify the model code / does the EObject send notifications?
>
> John Yotka schrieb:
>> I can edit the label of a node and the model attribute that the label
>> is derived from changes to the new value. but when the in-place cell
>> editor closes the displayed label is still the old value. when I
>> reedit that label it in-place sell editor shows the new value, when I
>> escape the cell editor the label reverts to the old text! I put a
>> break point in the handleNotificationEvent method of the EditPart for
>> the node but it never traps, so that method is never called when the
>> label is changed. How do I force a refresh of the label after I've
>> edited it?
No I didn't modify the (model or EditPart) code generated. The model
code does fire a notification when the attribute is updated by the
editing (via the setAttribute method).
Previous Topic:How to get Validation working in RCP application?
Next Topic:Refresh node labels
Goto Forum:
  


Current Time: Sun May 11 15:40:08 EDT 2025

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

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

Back to the top