Community
Participate
Working Groups
HEAD 20090224 setNamespace/getNamespace and setNamespacePrefix/getNamespacePrefix should by default rely on a field stored in DocumentElementNode. This is not the case in HEAD, thus, even if DSComponent performs a setNamespace(IDSConstants.NAMESPACE), the DocumentElementNode#writeShallow() method retrieves "" when calling getNamespace() and produces invalid XML (again!) because the prefix is used on the root element but not declared... See: <?xml version="1.0" encoding="UTF-8"?> <scr:component xmlns="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="a.b.c"> <implementation class="lmkmlk"/> </scr:component> This is rather severe since the component doesn't have a "DS" content-type anymore, and the DS editor is *not* opened at the end of the component creation wizard.
Created attachment 126536 [details] Patch A proposed better handling of namespaces/prefixes
Created attachment 126537 [details] mylyn/context/zip
done. > 20090224 This is our best option until PDE text editing fwk supports dom lvl2 or we move onto something like EMF.