private EditorCell createTable_sl01pn_c0(EditorContext editorContext, SNode node) {
   TableModelFactory creator =
       new TableModelFactory() {
         public TableModel createTableModel(final SNode node, final EditorContext editorContext) {
           return new HierarchycalTableModelWithHeader(
               node,
               SLinkOperations.findLinkDeclaration(
                   MetaAdapterFactory.getContainmentLink(
                       0xdf8799e7254a406fL,
                       0xbd67f4cc27337152L,
                       0x28004d411fa3bea0L,
                       0x28004d411fa3bea2L,
                       "rows")),
               SLinkOperations.findLinkDeclaration(
                   MetaAdapterFactory.getContainmentLink(
                       0xdf8799e7254a406fL,
                       0xbd67f4cc27337152L,
                       0x28004d411fa3bea6L,
                       0x28004d411fa3bea7L,
                       "cells")),
               SLinkOperations.findLinkDeclaration(
                   MetaAdapterFactory.getContainmentLink(
                       0xdf8799e7254a406fL,
                       0xbd67f4cc27337152L,
                       0x760c9302beb3e1d1L,
                       0x760c9302beb3e1d4L,
                       "headers")));
         }
       };
   jetbrains.mps.openapi.editor.cells.EditorCell_Collection editorCell =
       EditorCell_Table.createTable(
           editorContext, node, creator.createTableModel(node, editorContext), "Table_sl01pn_c0");
   editorCell.setCellId("Table_sl01pn_c0_0");
   return editorCell;
 }
Example #2
0
 private EditorCell createTable_io08np_c0(EditorContext editorContext, SNode node) {
   TableModelFactory creator =
       new TableModelFactory() {
         public TableModel createTableModel(final SNode node, final EditorContext editorContext) {
           return new XYCTableModel(
               node,
               SLinkOperations.findLinkDeclaration(
                   "jetbrains.mps.lang.editor.tableTests.structure.Matrix", "xs"),
               SLinkOperations.findLinkDeclaration(
                   "jetbrains.mps.lang.editor.tableTests.structure.Matrix", "ys"),
               SLinkOperations.findLinkDeclaration(
                   "jetbrains.mps.lang.editor.tableTests.structure.Matrix", "contents"),
               editorContext);
         }
       };
   jetbrains.mps.openapi.editor.cells.EditorCell_Collection editorCell =
       EditorCell_Table.createTable(
           editorContext, node, creator.createTableModel(node, editorContext), "Table_io08np_c0");
   editorCell.setCellId("Table_io08np_c0_0");
   return editorCell;
 }