You might need to change a text or icon for some Elements(nodes) in trees. For example, the adorn standard Element icon for showing that Element is annotated like the Validation framework does.

Option #1 for changing just a text

The text can be changed using a custom representation provider as described in Creating textual element representation. Using this approach, the text will be changed everywhere in UI, not just in trees.

Option #2 for changing a node text or icon

Use com.nomagic.magicdraw.ui.browser.TreeNodeAdornmentManager.addIconAdornment(IconAdornment) to register a node icon customizer.

Use TreeNodeAdornmentManager.addTextAdornment(TextAdornment) to register a node text customizer.