Cell alternation

I was trying to define a special editor for a field of a concept that is only visible if another (boolean) property is set to true. Cell alternation component is perhaps what I need. However, its condition is only evaluated when an editor for a concept is opened.

What is needed is the dynamic behaviour: when a boolean property changes from false to true, the new cell appears.

Is it possible to achive with available editor cells?

0
2 comments
Avatar
Permanently deleted user

Igor Karpov wrote:

I was trying to define a special editor for a field of a concept that is only visible if another (boolean) property is set to true. Cell alternation component is perhaps what I need. However, its condition is only evaluated when an editor for a concept is opened.

What is needed is the dynamic behaviour: when a boolean property changes from false to true, the new cell appears.

Is it possible to achive with available editor cells?

I think it is our a bug.

We rebuild editor structure only if something in tree changes (when

property changes we are only resize and update cells in editor), but

when you change proprety tree isn't changed, only property. As a

workaround you can define dummy agregation link with 1:0..1 cardinality,

use null as false and other values as true.

We can't fix this bug right now because it will significantly degrade

editing performance.

0
Avatar
Permanently deleted user

Igor Karpov wrote:

I was trying to define a special editor for a field of a concept that is only visible if another (boolean) property is set to true. Cell alternation component is perhaps what I need. However, its condition is only evaluated when an editor for a concept is opened.

What is needed is the dynamic behaviour: when a boolean property changes from false to true, the new cell appears.

Is it possible to achive with available editor cells?

Thanks.

Sumbited MPS-333

http://www.jetbrains.net/jira/browse/MPS-333

0

Please sign in to leave a comment.