Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » A question about property changes...
A question about property changes... [message #79499] Wed, 14 May 2003 22:51
Eclipse UserFriend
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
Previous Topic:Bug in RoundedRectangle?
Next Topic:A question about property changes...
Goto Forum:
  


Current Time: Sat Dec 21 12:53:46 GMT 2024

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

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

Back to the top