Community
Participate
Working Groups
When you create a new emtpy file sitemap.xmap and when you open it with the Lepido editor. It throws an exception : org.eclipse.jface.util.Assert$AssertionFailedException: null argument; at org.eclipse.jface.util.Assert.isNotNull(Assert.java:149) at org.eclipse.jface.util.Assert.isNotNull(Assert.java:125) at org.eclipse.jface.viewers.StructuredViewer.assertElementsNotNull(StructuredViewer.java:545) at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:849) This bug was reported by Ross Gardler. It is a known bug and a fix is being developed.
A nice solution for this bug could be an extension point to provide templates to initialize empty files. Those templates could also be used in a generic wizard to create files for all the visual editors.
I added a hard coded template to the newForm wizard to workaround this problem. However, the extension point you refer to sounds interesting. Do you have a pointer to more info on that Eclipse feature?