Skip to main content

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 Friend
Messages: 8
Registered: April 2011
Junior Member

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,
Previous Topic:draw2d - setBackgroundPattern
Next Topic:ZEST Custom figures
Goto Forum:

Current Time: Mon Jun 18 04:13:46 GMT 2018

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

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

Back to the top