Bug 106321 - Visual Editors don't work if the file is empty
Summary: Visual Editors don't work if the file is empty
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Lepido (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-08 05:17 EDT by David Sciamma CLA
Modified: 2021-07-15 15:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Sciamma CLA 2005-08-08 05:17:38 EDT
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.
Comment 1 David Sciamma CLA 2005-08-08 05:38:14 EDT
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.
Comment 2 Ross Gardler CLA 2005-08-09 15:22:44 EDT
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?