[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Property Sheet value updates a Figure

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