This content has been marked as final.
Show 1 reply
-
1. Re: Documentation question on nodeTypes example code?
rhauch Jul 12, 2012 11:42 PM (in response to tony.herstell1)Hi, Tony. Thanks for pointing out that error. This line in the code example:
NodeType[] nodeTypes =
new
NodeType[]{type};
should instead be:
NodeTypeDefinition[] nodeTypes =
new
NodeTypeDefinition[]{type};
NodeTypeDefinition is the supertype of both NodeTypeTemplate (the editable template created by the manager to allow your code to define new types) and NodeType (the read-only representation for registered types). That matches the signature of the "registerNodeTypes(NodeTypeTemplate[],boolean)" method on the following line, too. Sorry about the error. I've corrected the documentation page, too.
Please let us know if you find any other errors!