|Fire a property change from View [message #668464]
||Thu, 05 May 2011 19:00
Registered: April 2011
I am extending the Simple Shape Editor example of GEF.
I've added a label in the middle of each figure, and its working fine. The figures get stored to the file, and when I reopen them, they are shown as I created.
But there is a problem when I change the Label of any of the figures. (I do that with the help of an InputDialog) Eclipse doesn't detect any "change" in the file, and the Save Option is disabled.
This may be because Label is not one of the Properties defined in the original Shape Editor.
All I want to do is flag the file as "edited" every time I change the label. I tried adding a property to the Shape class for that, called Label, but not finding any way to "update" this property.
Essentially, I want to make fire a property change in to my model, from my view (the figure).
Can anyone tell me, how should I go about it?
(I may need to add a Command for that, but where and how, I don't know)
Thanks in advance,
Powered by FUDForum
. Page generated in 0.02764 seconds