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

Bug 552042

Summary: [JavaScript] Export JavaScript Code Style Formatter and CleanUp preference profiles to XML, similar to Java Code Style Formatter export
Product: [Eclipse Project] JDT Reporter: Taro Kyo <taro_k>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: michaelchou0622
Version: 4.13   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Taro Kyo CLA 2019-10-11 11:31:41 EDT
This is a feature request.

Currently, only Java Code Style Formatter can be exported as an XML, and can be imported from XML.

However, for JavaScript, the Code Style Formatter can only import XMLs.

It would be wonderful to have an export XML button feature to be added to the UI of the JavaScript Code Style Formatter and CleanUp in the Preferences dialog, so that it is consistent with the Java Code Style Formatter's export feature.

JavaScript is used for Java Server Pages and web-related resources.

The menus where the Code Styles for JavaScript lacking the "Export" button are:

Preference > JavaSCript > Code Style > Clean Up
Preference > JavaScript > Code Style > Formatter

Close if duplicate.
Comment 1 Taro Kyo CLA 2019-10-11 14:36:55 EDT
Apparently, the Export buttons are located in the dialog that appears when you click on the "Edit" button.

Closing this issue as it's working as intended, but it's just hidden.
Comment 2 Michael Chou CLA 2020-09-10 21:39:16 EDT
(In reply to Taro Kyo from comment #1)
> Apparently, the Export buttons are located in the dialog that appears when
> you click on the "Edit" button.
> 
> Closing this issue as it's working as intended, but it's just hidden.

Thanks, it's really useful and helpful.