A question about property changes... [message #79499] |
Wed, 14 May 2003 22:51 |
Eclipse User |
|
|
|
Originally posted by: DjShark.softhome.net
I don't know if this question is strongly related to GEF, but I've noticed
that many events in GEF are fired using a call to the command
firePropertyChange from the Model (to which an edit part listens to) whilst
providing the proper string ("location", "size", "bendpoint", etc.).
I was wondering if there is somewhere a list of all current known properties
which I can fire an event. Moreover, I wish to know if there is a way for me
to add strings of my own which would also fire the proper event.
Example: Suppose I have wires (just like in Logic) and I have added a
property to them indicating their resistance in Ohms. I also have added the
possibility to directly edit them using a property sheet. What I wish to do
is that when in fact the value is changed, I want an event to be fired to
the wire (such as firePropertyChange("prop", etc, etc,...) ) which would
tell the editor on the high level that there has been a change and therefore
the editor is now "dirty".
Sorry for the long text, and thanking you people in advance,
Dj Shark
|
|
|
Powered by
FUDForum. Page generated in 0.03221 seconds