Property Sheet value updates a Figure [message #173513] |
Thu, 24 March 2005 16:04 |
Eclipse User |
|
|
|
Originally posted by: jduley.mail.arc.nasa.gov
I am trying to update a label on a figure based on a string value in a
property sheet for that figure. When I select the figure and change its
label property, the EditPart for this Figure properly calls the
propertyChanged event which in turn calls refreshVisuals. In
refreshVisuals, I am not sure how to update the label in this Figure. I
have tried the following:
//get the new value
String mainLabel = getCastedModel().getMainLabel();
//update the Figure ???
setFigure(new OntologyClassFigure(new Label(mainLabel)));
this does not work and is probably nowhere near being correct. Any
suggestions would be great. Thanks.
Jason
|
|
|
|
Powered by
FUDForum. Page generated in 0.02791 seconds