|
From: Damir M. (JIRA) <no...@at...> - 2005-12-10 15:21:54
|
Misleading info message from LabeledObjectSupport class
-------------------------------------------------------
Key: RCP-250
URL: http://opensource.atlassian.com/projects/spring/browse/RCP-250
Project: Spring Framework Rich Client Project
Type: Bug
Versions: PR1
Reporter: Damir Murat
Assigned to: Oliver Hutchison
Method LabeledObjectSupport.setTitle(String) uses LabeledObjectSupport.getDisplayName() to retrieve title old value. Unfortunately, while setting up title property for the first time, this results in misleading info log message ' This labeled object's display name is not configured...".
Problem can be solved by introducing minor changes in setTitle() method:
public void setTitle(String title) {
String oldValue = null;
if (this.title != null || this.label != null) {
oldValue = getDisplayName();
}
this.title = title;
firePropertyChange(DISPLAY_NAME_PROPERTY, oldValue, getDisplayName());
}
Regards,
Damir Murat
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|