hierarchical tree structure and editing
I have such a structure
Folder A
-> Page p
-> Page q
Folder B
-> Page r
-> Folder M
-> Page mi
-> Page s
I want to be able to edit all pages. Is this possible? I think this is a very common editor use case. First I tried to implement this structure in the logical view. But the logical view does not support such a hierarchy. Then I tried to implement the structure with a "structuring" language that looks exactly like above. But then Page is not a root concept and I cannot open the editors.
Is it possible to implement this?
Please sign in to leave a comment.
Yes, it's possible in general. What specifically are you having trouble with?
What you might find useful is the custom project view DSL from mbeddr, see com.mbeddr.mpsutil.projectview language and this node for example.
I already have trouble starting correctly.
I have a root concept. That root concept contains two folder concepts A and B. Each of them contain page concepts or other folder concepts.
The result is that everything is in one big editor. My whole project is only one big concept editor. But I want to use the project view. I have loaded the projectview language from mbeddr. I spend very long to try understand how this should work but still have no idea.
I also see the node ByConcept in MPS that you showed me with the link. But I have no idea how to create and enable such a LogicalViewClone.
I wonder if I am the only one who misses this. I would need it always when working with a folder like structure. The approach that I have in the screenshot is not very comfortable.
What specifically in the custom project view language is giving you trouble?
If you want to edit Files/Pages alone by themselves they have to be root nodes. If you want to show them in folders, you can either:
I think I make some basic thing wrong. What I tried so far:
It looks like this is not the right way. Because nothing in the project view changes. And I see not how to enable my project view.