Question about the 'editor' editor Follow Prashant1 Created January 17, 2006 18:51 What is the difference between node cell layout and inspected cell layout?Also what are action sets? Can you give me an example of their usage?
the 'cell layout' describes node presentation in editor pane and the 'inspected cell layout' describes cells shown in inspector (smaller component in lower-left corner) when node is selected in main editor component.
Ok and what are action sets? Can you give me an example of their usage?
Also could you give some sort of an example of usage of 'inspected cell layout'? I mean lets say I go to it and select 'punctuation', then I am given a choice of all these punctuation symbols like ' ! - etc. What do these mean? Where can I use them?
In MPS editor framework we have two editors. One is displayed in
inspector and other is displayed in editor. One layout is used in editor
and other in inspector.
Punctuation is used in our MPSWiki framework (Try
http://www.sergeydmitriev.com/mps/wiki). In it we represent text as MPS
nodes. Punctuation layout is used in punctuation symbols editors.
Punctuation symbols have to be displayed on the same line as the word
which they are related to, so we use this layout to send instruction to
parent layout that this node is punctuation. You can ignore it now.
Action were used to specify completion and some other editor's aspects
in previous versions of MPS. But now they are deprecated. If you want to
alter completion behaviour you should use actions language. Example of
its usage you can find in baseLanguage, structureLanguage and
Can you specificy a specific example of the new way to specify completion?
I did a quick search through baseLanguage and found examples of action sets like on: AssignmentExpression_Editor but couldn't find any non-action sets examples....
RefuX Zanzeebarr wrote:
Try to look in action models. For example
jetbrains.mps.bootstrap.structureLanguage.actions. When actions declared
in this model cell isn't marked with ^. We created actions models
because we need a way to extends action sets. For example we want to add
new expression kinds in extension of base language.