TextCell textCell = editor.createTextCell("Hello"); ReferenceCell refCell = editor.createReferenceCell("world"); textCell.setReferenceCell(refCell);
NodeCell nodeCell = editor.createNodeCell(); ReferenceCell refCell = editor.createReferenceCell("person"); nodeCell.setReferenceCell(refCell);This example creates a node cell and a reference cell with the value "person". Then it sets the reference cell as the reference for the node cell. Package library: The package library used in this example is the Jetbrains MPS openapi.editor.cells package.