Two child cell in one editor prevet focus from going to second one

Hi, I'm MPS beginner. 

I'm trying to have two child cells on pointing on the same child but made only one editable. 

My editor code looks like:

[-
% condition % => [> % koeficient %  × <] ( % changeoverOperation % -> { name } ) <constant>
[> ( [> % koeficient % ×<] ( % changeoverOperation % -> % time_taken % ) ) <]
<constant>
-]

Second koeficient cell is set readonly, noneditable and nonselectable, but when I'm fill first one and hit the enter cursor skips to second one.

Is there some way to avoid this behavior?

4 comments

Typically, such read-only cells are handled with read-only model access cells. You specify the query down in the inspector.

Vaclav

 

0

Thanks Vaclav, that somehow help, but I can't figure out how to get same text from koeficiet which is  Expression concept as I get from link declaration.

eg.

Koeficient is 5 * someInstalce.somevar -> read-only field should show "5 * someInstance.somevar" 

When I'm using node.getDetailedPresentation() it show only "*"

Could you suggest some way out?

 

Thanks in advance.

0

ExpressionPresentationUtil.getExpressionPresentation() should help.

0

Thanks Vaclav, that's exactly what I was looking for. You are the best.

 

0

Please sign in to leave a comment.