I have an file containing only valid XML. When I name the file [name].xml, I can open it fine in the MyEclipse XML editor. When I name it to [name].uim (one of our custom file extensions) without changing the content, opening the file in the MyEclipse XML editor fails (“Unable to create this part due to an internal error. Reason for the failure: An unexpected exception was thrown.”) with the following exception:
java.lang.NullPointerException
at org.eclipse.wst.sse.ui.StructuredTextEditor.update(StructuredTextEditor.java:3055)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.addSourcePage(XMLMultiPageEditorPart.java:338)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.createPages(XMLMultiPageEditorPart.java:505)
at com.genuitec.myeclipse.ui.editors.XMLEditor.createPages(XMLEditor.java:11)
… and so on
Note that I have the MyEclipse XML Editor set as the associated editor for files of type *.uim. This is really irritating, it’s not happened in any previous versions of MyEclipse it’s just since I installed 5.5.1 GA.
What the?