Create a note in a diagram by code

Does anyone know what is the method to create a note in a Diagram ? Or how can I create a note in a Diagram by code ? If I well understand, I have to create a Node and set the style of it to Note and then insert it in the concerned diagram right ? But I did not succeed.

Hello
At the top of the Palette, in every diagram editor, you will find tools to add:

  • Notes, which are similar to comments to the diagram
  • Text
  • Representation links, which are notes that allow you to navigate to other diagrams
    Hope it helps

Hello
Thank you for your help but I’m trying to do it by code.

Copyright © Eclipse Capella, the Eclipse Capella logo, Eclipse and the Eclipse logo are Trademarks of The Eclipse Foundation.