Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:00
Saurabh  is currently offline Saurabh
Messages: 8
Registered: April 2011
Junior Member
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: Thu Oct 30 15:56:11 GMT 2014

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

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