Question about the 'editor' editor

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?

7 comments
Comment actions Permalink

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.

igor.

0
Comment actions Permalink

Ok and what are action sets? Can you give me an example of their usage?

0
Comment actions Permalink

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?

0
Comment actions Permalink

Hello, Prashat,

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.

0
Comment actions Permalink

Hello, Prashant,

Prashant wrote:

Ok and what are action sets? Can you give me an example of their usage?

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

editorLanguage projects.

0
Comment actions Permalink

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....

0
Comment actions Permalink

Hello, Refux,

RefuX Zanzeebarr wrote:

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....

Try to look in action models. For example

jetbrains.mps.baseLanguage.actions or

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.

0

Please sign in to leave a comment.