Project: Birt
Bug 271856 Support multiple states for PropertyVisibility setting in Model extension schema
Reported: 2009-04-09 23:59:55 | Status: verified fixed

Currently the PropertyVisibility setting in Model extension schema only support one exclusive value: "readonly" or "hide". For some properties, user may want them to have both states, e.g "readonly" and "hide". One example is the "drop" property for Crosstab cell, currently we have no way to set it as both "readonly" and "hide". The solution could be supporting a comma separated syntax for PropertyVisibility value, e.g. "readonly, hide", which can describe multiple state in an "and" relationship. This will also keep the compatibility with old values.

Files changed in fix:
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ElementExporterTest.java model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/PropertyHandleTest.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/LibraryHandle.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ReportDesignHandle.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/ElementExportUtil.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignSession.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/Theme.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/ElementDefn.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/ODAExtensionElementDefn.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/StringPropertyType.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/LibraryState.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/LibraryUtil.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/StyleUtil.java