AbstractCellProvider Type Not Found

I am hoping to display a list of editable nodes underneath a cousin node in its editor.  Note that the editable nodes are not descendants but cousins of the target node.  If this is not possible, please let me know.

To do this, I have added a "custom cell" to the editor for the target node, which will walk the AST to find the cousins and create edit cells for each cousin.  This custom cell defines a cell provider that returns an instance of AbstractCellProvider.  However, when I attempt to create a local variable of type "AbstractCellProvider", I find that this type is not included in the completion menu.

I have verified that my "editor" model uses the language jetbrains.mps.lang.editor.  The definition of the cell provider contains a reference to AbstractCellProvider as the return value, and that type reference seems to be OK, so I do not know why I cannot declare a local variable with the same type.

I have attached a screenshot that shows what I am trying to do.

0
2 comments

You have to add jetbrains.mps.nodeEditor@java_stub to the dependencies of the editor aspect. Most of the time it is very useful to select the class that you want to use and press [Ctrl/Cmd]+R to import it. 

I also wouldn't use an AbstractCellProvider but rather have a look at com.mbeddr.mpsutil.editor.querylist (mbeddr platform) . This plugin makes your task a lot easier.

1
Avatar
Permanently deleted user

Thank you!  [Ctrl/Cmd]+R did the trick.  I am new to MPS, and I was attempting to add jet brains.mps.nodeEditor as a language rather than a dependency.

0

Please sign in to leave a comment.