Sapphire 0.7 upgrade and SDEF content include params [message #1067897] |
Thu, 11 July 2013 03:36  |
Eclipse User |
|
|
|
Hi guys,
I'm working on migrating our editors to use new Sapphire 0.7 version. So for its been great, it seems a little bit faster and no more @GenerateImpl yeah! Byebye nasty PDE/JDT/APT bug.
One problem I'm having with one of our existing editors is the content include that uses parameters. Previously we had shared component that was included in other places. So the shared section looks like this:
<composite>
<id>support.eventdef.composite</id>
<content>
<property-editor>
<property>@{Property}</property>
<child-property>Qname</child-property>
<child-property>Description</child-property>
<show-label>false</show-label>
<span>true</span>
</property-editor>
</content>
</composite>
And then in two other places we would include that composite like this:
<section>
<label>Supported Processing Events</label>
<content>
<include>
<part>support.eventdef.composite</part>
<param>
<value>SupportedProcessingEvents</value>
<name>Property</name>
</param>
</include>
</content>
<collapsible>true</collapsible>
</section>
<section>
<label>Supported Publishing Events</label>
<collapsible>true</collapsible>
<content>
<include>
<part>support.eventdef.composite</part>
<param>
<name>Property</name>
<value>SupportedPublishingEvents</value>
</param>
</include>
</content>
</section>
You can see that in the two includes we would pass in the value for the Property argument. This worked in sapphire 0.6 but not in 0.7 In 0.7 it throws an error:
java.lang.RuntimeException: Property editors property reference path "{0}" is invalid.
at org.eclipse.sapphire.ui.PropertyEditorPart.init(PropertyEditorPart.java:126)
at org.eclipse.sapphire.ui.SapphirePart.init(SapphirePart.java:186)
at org.eclipse.sapphire.ui.SapphirePart.create(SapphirePart.java:1247)
at org.eclipse.sapphire.ui.FormPart.initChildParts(FormPart.java:126)
at org.eclipse.sapphire.ui.FormPart.init(FormPart.java:42)
at org.eclipse.sapphire.ui.SapphirePart.init(SapphirePart.java:186)
at org.eclipse.sapphire.ui.SapphirePart.create(SapphirePart.java:1247)
at org.eclipse.sapphire.ui.SapphirePart.create(SapphirePart.java:1206)
at org.eclipse.sapphire.ui.FormPart.initChildParts(FormPart.java:126)
at org.eclipse.sapphire.ui.FormPart.init(FormPart.java:42)
at org.eclipse.sapphire.ui.SectionPart.init(SectionPart.java:72)
at org.eclipse.sapphire.ui.SapphirePart.init(SapphirePart.java:186)
at org.eclipse.sapphire.ui.form.editors.masterdetails.MasterDetailsContentNode.init(MasterDetailsContentNode.java:250)
at org.eclipse.sapphire.ui.SapphirePart.init(SapphirePart.java:186)
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04901 seconds