Skip to content

Query List

Language Namespace : de.itemis.mps.editor.querylist

The querylist cell allows displaying arbitrary nodes in the editor.

Supported properties

  • query: a list of nodes that are shown in the editor
  • elements concept: the concept of the queried nodes
  • duplicates safe: there might be issues with displaying the same node multiple times in the editor. Enabling or disabling this flag can help with this issue.
  • insert new: a function that’s called when the insert action is invoked.
  • delete element: a function that’s called when the delete/backspace action is invoked
  • substitute info: a custom completion menu entry

The editor is set to readonly by default. The language supports nodes that can be edited but be aware that you might run into issues when the same node is shown multiple times in the same editor.

example: query list

Known limitations

Some issues arise, when you try to show the same node multiple times in the same editor: folding buttons might disappear, the cursor might jump to the wrong part of the editor etc. You can play around with the duplicates safe flag but this is a limitation of MPS that can’t be fixed at the moment.

Blog posts