Community
Participate
Working Groups
Build Identifier: 3.6.2 Using Sapphire v0.3.0.201104112149 When trying to specify read.only rendering hint for a Property List editor to false, I was getting the following exception: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean at org.eclipse.sapphire.ui.SapphirePropertyEditor.getRenderingHint(SapphirePropertyEditor.java:318) at org.eclipse.sapphire.ui.renderers.swt.DefaultListPropertyEditorRenderer.createContents(DefaultListPropertyEditorRenderer.java:171) at org.eclipse.sapphire.ui.renderers.swt.DefaultListPropertyEditorRenderer.createContents(DefaultListPropertyEditorRenderer.java:162) at org.eclipse.sapphire.ui.renderers.swt.PropertyEditorRenderer.create(PropertyEditorRenderer.java:158) at org.eclipse.sapphire.ui.SapphirePropertyEditor.render(SapphirePropertyEditor.java:411) at org.eclipse.sapphire.ui.SapphirePartContainer.render(SapphirePartContainer.java:86) at org.eclipse.sapphire.ui.SapphireComposite.render(SapphireComposite.java:175) at org.eclipse.sapphire.ui.editor.views.masterdetails.MasterDetailsPage$DetailsSection.createSections(MasterDetailsPage.java:1321) at org.eclipse.sapphire.ui.editor.views.masterdetails.MasterDetailsPage$DetailsSection.selectionChanged(MasterDetailsPage.java:1299) at org.eclipse.ui.forms.DetailsPart$1.run(DetailsPart.java:274) Reproducible: Always Steps to Reproduce: 1. Add a property list editor to a section 2. Set the read.only Hint to false in sdef file 3. Load this section in the resulting editor UI
Created attachment 193115 [details] Screenshot of the problem in UI The result of this is an error dialog box when the section is loaded .
Created attachment 193116 [details] Patch attempt #1 Added read.only hint to list of hints parsed as boolean
Patch integrated. Thanks!
Verify by adding read.only hint to list.