Summary: Uses
global library namespaces to find elements like datasource/dataset and embedded
images.
- Bugzilla Bug (s) Resolved: 120305 - NPE will be throw when try to clear theme
setting.
- Description:
1. Created a new method getVisibleLibraryWithNameSpace on the module to find
elements in the directly included libraries.
2. Revised
methods in the ReferenceValueUtil so that some library datasets of which the
name could be “Lib1.Lib2.ds1”.
3. Used new
resource finding algorithm to get resources like “Lib1.Lib2.ds1”.
4. Fixed one
bug in the ModuleHandle.
5. Fixed two
bugs in the DesignElement. Bugs related to property search algorithm.
6. Updated
test cases.
- Tests Description : Unit tests.
- Files Edited:
Checking in
test/org/eclipse/birt/report/model/library/input/DesignWithOneCompositeLibrary.xml;
Checking
in test/org/eclipse/birt/report/model/library/input/Library_1.xml;
Checking
in
test/org/eclipse/birt/report/model/library/input/DesignWithDuplicateNamespace1.xml;
Checking
in test/org/eclipse/birt/report/model/library/input/LibraryStructureTest_4.xml;
Checking
in
test/org/eclipse/birt/report/model/library/input/LibraryIncludingTwoLibraries.xml;
Checking
in test/org/eclipse/birt/report/model/library/DesignLoadLibraryTest.java;
Checking
in test/org/eclipse/birt/report/model/library/LibraryStructureTest.java;
Checking
in src/org/eclipse/birt/report/model/core/namespace/SimpleNameScope.java;
Checking
in src/org/eclipse/birt/report/model/metadata/StructRefPropertyType.java;
Checking
in src/org/eclipse/birt/report/model/metadata/ElementRefPropertyType.java;
Checking
in src/org/eclipse/birt/report/model/api/ImageHandle.java;
Checking
in src/org/eclipse/birt/report/model/api/ModuleHandle.java;
Checking
in src/org/eclipse/birt/report/model/core/ReferencableStructure.java;
Checking
in src/org/eclipse/birt/report/model/core/DesignElement.java;
Checking
in src/org/eclipse/birt/report/model/core/Module.java;
Checking
in test/org/eclipse/birt/report/model/core/DesignElementTest.java;
Checking
in
test/org/eclipse/birt/report/model/library/golden/LibraryIncludeLibrary_golden.xml;
Checking
in src/org/eclipse/birt/report/model/command/LibraryCommand.java;
Checking
in src/org/eclipse/birt/report/model/util/ReferenceValueUtil.java;
Checking
in src/org/eclipse/birt/report/model/util/StructureRefUtil.java;
- Files Added:
Checking in
test/org/eclipse/birt/report/model/library/ReferenceValueUtilTest.java;
- Notes to Build Team:
- Notes to Developers:
One use case:
1. report includes lib1, lib1
includes lib2
2. one report has a table “myTable”
extends “lib1Table” in lib1
3. “lib1Table”
extends “lib2Table” that defines in the library lib2.
4. “lib2Table” uses a
dataset “lib2Ds1” in the lib2
5. the method of myTable.getStringProperty(IReportItemModel.DATA_SET_PROP)
returns “lib1.lib2.lib2Ds1”
6. the method of findDataSet(“lib1.lib2.lib2Ds1”)
return the handle of “lib2Ds1”
- Notes to QA:
- Notes to Documentation:
Rick Lu
Actuate Shanghai Center.
Email: rlu@xxxxxxxxxxx
Phone: 86 21 58826388
Fax: 86 21 58826002