Community
Participate
Working Groups
Users that edit plugin.xml/fragment.xml using text editors can comment out portions of it if they don't want some contributions to be seen. The same simple feature is not possible using PDE manifest editors. Manifest editors preserve comments but only if they are before an XML element. Therefore, if elements to be commented out are the last siblings in a parent, the comments will not survive the roundtrip. This need to be fixed.
This can result in loosing data (portions of plugin.xml) - a must fix.
Here a sample : <runtime> <library name="easystruts.jar"/> <library name="lib/jdom.jar"/> <!-- Editor not yet ready <library name="lib/commons-digester.jar"/> <library name="lib/commons-collections.jar"/> <library name="lib/commons-beanutils.jar"/> <library name="lib/commons-logging.jar"/> <library name="lib/struts.jar"/> --> </runtime> <requires> <import plugin="org.eclipse.swt"/> <import plugin="org.eclipse.jdt.ui"/> <import plugin="org.apache.xerces"/> <import plugin="org.eclipse.core.resources"/> <import plugin="org.eclipse.jdt.core"/> <import plugin="org.eclipse.ui"/> <!-- Editor not yet ready <import plugin="org.eclipse.update.ui.forms"/> <import plugin="org.eclipse.pde"/> <import plugin="org.eclipse.pde.ui"/> <import plugin="org.eclipse.tomcat"/> --> </requires> All element in comment will be removed if you change the tab of the plugin manifest editor. -Emmanuel
Since we will not finish the source page work in 2.1, we must handle this to prevent users from loosing data.
*** This bug has been marked as a duplicate of 37661 ***