|
|
|
| Re: Import a code formatter for the Java editor. An example? [message #253603 is a reply to message #253599] |
Thu, 29 May 2008 07:39  |
Eclipse User |
|
|
|
Ed Merks wrote:
> Dani,
>
> When you export your formatter preferences it saves it in an XML file
> as you know. :-P
Yes, but that has nothing to do with the Java editor preference page.
Dani
> So AL could produce his own example by creating a new profile and
> exporting to it. Here's a snip of EMF's one:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <profiles version="11">
> <profile kind="CodeFormatterProfile"
> name="EMFCodeFormatter.profile" version="11">
> <setting
> id="org.eclipse.jdt.core.formatter.blank_lines_before_package "
> value="0"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_new_line_before_while_ in_do_statement "
> value="insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.number_of_blank_lines_at_begi nning_of_method_body "
> value="0"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_space_after_comma_in_e num_declarations "
> value="insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_space_before_closing_b racket_in_array_reference "
> value="do not insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.indent_statements_compare_to_ block "
> value="true"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_space_after_colon_in_c ase "
> value="insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.keep_then_statement_on_same_l ine "
> value="false"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_space_before_comma_in_ type_arguments "
> value="do not insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.comment.indent_parameter_desc ription "
> value="true"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_space_after_opening_br ace_in_array_initializer "
> value="insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_new_line_in_empty_meth od_body "
> value="insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_space_between_empty_br aces_in_array_initializer "
> value="do not insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_space_before_closing_p aren_in_while "
> value="do not insert"/>
> <setting
> id=" org.eclipse.jdt.core.formatter.insert_space_after_postfix_op erator "
> value="do not insert"/>
>
> Of course I doubt he will want to create the .xml file directly. He
> should be using the tabs in the dialog to tailor the formatting to
> what he wants and save those results when he's done.
>
>
> Daniel Megert wrote:
>> AL wrote:
>>> Looks like the Java editor preference page is asking for an xml
>>> file. Is there an example? Thanks.
>> I have no idea what you're talking about.
>>
>> Dani
>
|
|
|
Powered by
FUDForum. Page generated in 0.12204 seconds