Community
Participate
Working Groups
We have a structured text editor (StructuredTextEditor) that uses the XQuery content type ("org.eclipse.wst.xquery.sse.core.xquery" that is declared in org.eclipse.wst.xquery.sse.core bundle). This text editor is used in a multi-page editor. When opening the editor, I get this error message in a dialog: 'Editor cannot be opened. Null charset name'. There is no exception reported in the Error Log view. But by drilling into the source code, I identified the root cause to be that there is no default charset defined for the content type "org.eclipse.wst.xquery.sse.core.xquery" in the plugin.xml file. Modifying the plugin.xml and setting the default charset to "UTF-8" solved the issue. So, I believe <content-type file-extensions="xq,xql,xqy,xquery" id="org.eclipse.wst.xquery.sse.core.xquery" name="XQuery Module" priority="high"> </content-type> should be <content-type default-charset="UTF-8" file-extensions="xq,xql,xqy,xquery" id="org.eclipse.wst.xquery.sse.core.xquery" name="XQuery Module" priority="high"> </content-type>
I just pushed the fix you suggested to the Git repository. Thanks!