How to build my own Table Cell Model?

  • 0
  • 4

Hi again,

I'm currently implementing a tabular editor which just has some column headers and cells. Since the sample implementation contains column headers as well as row headers I thought that it would be the right way to implement the interface TableModel on my own. Ok, this is not a big deal.

But after implementing this XCTableModel, I'm stuck. As shown in the sample implementation I imported the jetbrains.mps.lang.editor.table.runtime in my editor model. Doing so I can make use of the CellModel_Table concept. Using the Inspector I provided my own TableModel implementation. Making the language worked fine and I moved over to try it out in my sandbox solution. But there the problem occured: When I created a new node with type of my table concept implementation, the editor just showed all elements as list and not in tabular style with borders and so on.

It would be great to get help with this issue. Does anybody have tips?

Thank you very much in advance!
Regards,
LaAck