More complex node-template labels? [message #663347] |
Mon, 04 April 2011 13:36  |
Eclipse User |
|
|
|
Hey there...
Amazingly enough, I now have an editor built with the latest Sapphire 0.3 build that works with my latest configuration xml file. Life is good!!
That said, I'm now looking at trying to clean up what I've got working. Adding functionality such as a browse dialog for classes, drop-down lists where they make sense, etc.
I've run into a place where I have an element with no good candidate for a simple label. There are three attributes and I'd like to combine two of them into a generated label, but I've not had any luck doing so.
This type of example shows up everywhere in the example sdef files:
<node-template>
<label>${ Name == null ? "<transform.java>" : Name } </label>
...
</node-template>
So if the Name is null, use this string "<transform.java>", if not use the property value instead. Easy enough.
But what happens if I have an XML element like:
<smooks:transform.smooks from="msgC" to="msgD">
And I want the node label in the tree to look like:
I've tried the first part in my sdef with something like this:
<label>${ TransformSmooksFrom == null ? "<from:undefined>" : "<from: " + ${TransformSmooksFrom} + ">" }</label>
But it doesn't work. Is there another way to do this?
Thanks in advance!
--Fitz
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04175 seconds