Bug 1083871 - switchyard.xml generated by SwitchYard editor do not follow user specified XML formatting
Summary: switchyard.xml generated by SwitchYard editor do not follow user specified XM...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard Editor
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Rob Cernich
QA Contact: Matej Melko
URL:
Whiteboard:
: 1026391 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-03 06:46 UTC by Václav Chalupa
Modified: 2025-02-10 03:35 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:35:31 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)

Description Václav Chalupa 2014-04-03 06:46:00 UTC
Description of problem:

SwitchYard UI editor ignore user settings for XML files formatting and always use 2 spaces for indentation.

How reproducible:

Set 'Indent using tabs' (or different settings then 2 spaces) in eclipse preferences - XML Files formatting, design SwitchYard composite with the SwitchYard UI editor and see generated switchyard.xml.

Actual results:

Generated switchyard.xml file has always 2 spaces for indentation.

Expected results:

Generated switchyard.xml file follows the specified setting of XML formatting.

Comment 1 Brian Fitzpatrick 2014-06-09 18:18:24 UTC
Apparently there isn't a great way to handle this currently in EMF. Based on this thread in the EMF forum (http://www.eclipse.org/forums/index.php/t/340341/) it appears that we would need to specialize the serializer itself, e.g., in
org.eclipse.emf.ecore.xmi.impl.XMLString.getElementIndent(int) and pick up the correct value from the preference.

Comment 2 kconner 2014-09-02 18:31:20 UTC
*** Bug 1026391 has been marked as a duplicate of this bug. ***

Comment 9 Red Hat Bugzilla 2025-02-10 03:35:31 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.