From: Anton A. (JIRA) <no...@sp...> - 2011-07-25 12:42:07
|
Bug in setImage method of LabeledObjectSupport class ---------------------------------------------------- Key: RCP-633 URL: https://jira.springsource.org/browse/RCP-633 Project: Spring Rich Client Project Issue Type: Bug Components: Core Affects Versions: 1.1.0 Reporter: Anton Antonov Assignee: Lieven Doclo Currently the method looks as following: {code} public void setImage(Image image) { Image oldValue = image; this.image = image; firePropertyChange("image", oldValue, image); } {code} In the first line it should assign {{this.image}} instead of {{image}}. For this reason, property listeners do not get updates, as an old image always equals a new one. As a workarround it is possible to create a private field {{image}} and override the following methods in the ancestors of LabeledObjectSupport: - setImage, - getImage, - getIcon. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |