Enhancement
Major
Detail
Major
Detail
The tl:VersionedObjectNaming is a tl:ModelNamingScheme for persistent objects. It has properties for the branch and revision of the object to identify historized objects as well.
If the corresponding object is on the trunk branch and in revision current, the properties are filled with the value null. This is messy.
For example, recording from a tl:StructuredElement (extends tl:VersionedObjectNaming) could result in the following action:
{{#!xml <root config:interface="com.top_logic.element.layout.scripting.StructuredElementNaming$Name"
path="foo"
structure="bar"
>
<branch config:interface=""/>
<revision config:interface=""/>
</root> }}
Better would be: {{#!xml <root config:interface="com.top_logic.element.layout.scripting.StructuredElementNaming$Name"
path="foo"
structure="bar"
/> }}}
The branch and revision should be set only if they are necessary i.e. if the branch is different from Trunk or the revision is different from Current.
Test
Refactoring.