Hello, Does anyone know if it is possible to define an editor that will show a single non-root node - ie to NOT display in it the context of its parent(s) / root? I've got a model with a single root a...

This is an auto-generated question from the MPS Slack community: Hello, Does anyone know if it is possible to define an editor that will show a single non-root node - ie to NOT display in it the context of its parent(s) / root? I've got a model with a single root and 50k+ nodes in a descendant tree (imported from an external system and ideally I don't want to change the tree structure), but it's not possible to open any of the nodes within the editor without to loading the root and crashing trying to load everything! Thanks!
6 comments
Comment actions Permalink
You can have a model query as an alternate root concept editor. And then just display the queried nodes. If you already use the mps-extensions, you might want to use the query list editor component. If not, you can also write an own editor component
0
Comment actions Permalink
On the side of editor component, you can use the EmbeddableEditor class, ChangeMethodSignatureDialog uses it to display a non-root node, though it doesn’t support full checking (it can be enabled but it might show errors such as “node cannot be root”, maybe if the node is still attached to parent that wouldn’t be an issue)
0
Comment actions Permalink
Slack user:UTMGHE28J> how do you plan to show the node you are interested in?
0
Comment actions Permalink
Thanks for the pointer Slack user:U01LQCCHBS4> I'm looking into that now :+1:. Slack user:U6K7KNMHB> I was intending on depending on the 'show members' option within the tree appearance settings of the project view and selecting individual child nodes
0
Comment actions Permalink
Slack user:UTMGHE28J> still a big list, though it supports search by keystrokes I think
0
Comment actions Permalink
This is auto-generated question from the MPS Community Slack Workspace. If you want to comment on the question, do it from the Slack workspace
0

Post is closed for comments.