Does anyone have any objection to making nodetypes a static class ? The properties of each node type are gathered from the proparse server once. As a node class needs to determine the node type characteristics, we currently have to pass around the parseunit object so that the node can do
DEF PUBLIC PROPERTY Type AS CLASS NodeType NO-UNDO GET(): RETURN parseUnit:proparse:NodeTypes:Item(TypeNum). END GET . PROTECTED SET .
I would prefer to see
DEF PUBLIC PROPERTY Type AS CLASS NodeType NO-UNDO GET(): RETURN NodeTypes:Item(TypeNum). END GET . PROTECTED SET .
where NodeTypes is the static class.
Re: Make nodetypes class static
Sounds good to me.
I don't have objections.
I don't have objections.