Summary:
When create styles with duplicate names, the warning message is
not right. This is because the inappropriate exceptions.
Another problem is that for group elements, if renames a group
element with duplicate names on UI, no warning message. Style in themes has the
same problem. Added check mechanism for these problems.
Bugzilla Bug (s) Resolved: 136061, 141952
Description:
1. Revised codes in PropertyCommand,
ContentCommand and NameCommand for name issues of styles and groups.
2. Refactored codes in DesignElement.
3. Added missed methods on
FilterConditionHandle.
4. Fixed problems in ThemeStyleNameValidator,
MasterPageContextContainmentValidator and GroupNameValidator.
5. Updated test cases.
Tests Description : Junit test.
Files Edited:
Model Plugins:
"/org.eclipse.birt.report.model/test/org/eclipse/birt/report/model/library/LibraryThemeTest.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/FilterConditionHandle.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/ThemeStyleNameValidator.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/MasterPageContextContainmentValidator.java"
"/org.eclipse.birt.report.model/test/org/eclipse/birt/report/model/api/TableItemHandleTest.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/PropertyCommand.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/GroupNameValidator.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/NameCommand.java"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/GroupHandle.java"
BIRT Engine Plugins:
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/element/IGroup.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/element/Group.java"
Files Added:
Files Removed:
Notes to Build Team:
Notes
to Developers:
Notes to QA:
Quotes
to Documentation:
Rick Lu
Actuate Software
Shanghai Center
Tel: (86)21-58826388
Fax: (86)21-58826002
Email: rlu@xxxxxxxxxxx