Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353761

Summary: [Property View - Customization] Generated XWT files are not formatted
Product: [Modeling] Papyrus Reporter: Camille Letavernier <cletavernier>
Component: CoreAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse-bugzilla
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Camille Letavernier CLA 2011-08-03 09:17:54 EDT
Plug-in : org.eclipse.papyrus.properties.model.xwt

When using the EMF to XWT transformation to generate XWT Files, the files are generated on a single line. The main problem is that these generated files cannot be handled correctly by SVN, preventing the file merges.

Moreover, the order of the XML attributes may change from a generation to another.

- The XWT files are not formatted
- The order of the XML attributes is not deterministic
Comment 1 Camille Letavernier CLA 2011-09-08 08:57:53 EDT
Fixed in r5403 (Branch 0.8.X)
Merged to the trunk in r5404
Comment 2 Camille Letavernier CLA 2011-09-08 10:51:28 EDT
All XWT files have been formatted

Done in r5409 (Branch 0.8.X)
Merged to the trunk in r5410
Comment 3 Camille Letavernier CLA 2011-09-19 07:49:05 EDT
- Some properties (Especially namespaces) are formatted in a random order, resulting in non-pertinent changes on the files
- A NPE occurs when saving files from the Customization editor
Comment 4 Camille Letavernier CLA 2011-09-19 08:40:46 EDT
> - A NPE occurs when saving files from the Customization editor

Fixed in r5505 (Branch 0.8.X)
Merged to the trunk in r5507
Comment 5 Camille Letavernier CLA 2013-02-28 13:49:23 EST
The bug is fixed, although the following issue still exists:

> - Some properties (Especially namespaces) are formatted in a random order, resulting in non-pertinent changes on the files

I will reopen a more specific task for it.