Skip to main content



      Home
Home » Eclipse Projects » GEF » Fire a property change from View(fire a change in the currently edited file)
Fire a property change from View [message #668464] Thu, 05 May 2011 15:00
Eclipse UserFriend
Hi,

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,
Saurabh
Previous Topic:ZEST Layouts: it's possible to apply them to GEF Figures?
Next Topic:draw2d behaves wrongly on Ubuntu 10.10
Goto Forum:
  


Current Time: Wed Apr 23 11:00:56 EDT 2025

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

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

Back to the top