Enable/disable individual FormEditorPage (or page contents) based on model properties? [message #1106834] |
Wed, 11 September 2013 12:04  |
Eclipse User |
|
|
|
I have a Sapphire editor declared as a class with several FormEditorPages as members (following the Architecture example, among others). I'd like to be able to hide/show these individual pages depending on certain property values of the root model. Is this possible?
As a backup, I'd be happy with hiding the contents of those pages/panels using the <visible-when> tag on the .sdef, but I've run into some issues making this work. For example, I had the following in my .sdef:
<form-editor-page>
<id>FusionCenterPage</id>
<element-type>org.mitre.ref.jieddo.scenario.fusion.input.model.FusionCenter</element-type>
<page-name>Fusion</page-name>
<page-header-text>Sensor Fusion Scenario: ${ Name == null ?
"" : Concat( Name, " " ) }</page-header-text>
<content>
<section>
<label>fusion centers</label>
<content>
<include>fusion.center.panel</include>
</content>
<visible-when>${Type != "feature"}</visible-when>
</section>
</content>
</form-editor-page>
However, when I try the above, the section never becomes visible, even when changing the property and I can confirm via other tests (of the Sapphire expression language) that the condition is "true".
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.05970 seconds