Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 8000 - Commenting portions of plugin.xml not available in Forms UI
Summary: Commenting portions of plugin.xml not available in Forms UI
Status: RESOLVED DUPLICATE of bug 37661
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Wassim Melhem CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-22 10:08 EST by Dejan Glozic CLA
Modified: 2004-02-25 22:25 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dejan Glozic CLA 2002-01-22 10:08:02 EST
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.
Comment 1 Dejan Glozic CLA 2002-04-16 16:05:40 EDT
This can result in loosing data (portions of plugin.xml) - a must fix.
Comment 2 Emmanuel Boudrant CLA 2002-07-17 07:23:50 EDT
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
Comment 3 Dejan Glozic CLA 2003-01-24 14:33:20 EST
Since we will not finish the source page work in 2.1, we must handle this to 
prevent users from loosing data.
Comment 4 Wassim Melhem CLA 2004-02-25 22:25:12 EST

*** This bug has been marked as a duplicate of 37661 ***