From f95c105980fc8dc1c356665bb796f256d62bf1ca Mon Sep 17 00:00:00 2001 From: Robin Stocker Date: Sun, 22 Jan 2012 14:23:43 +0100 Subject: Save Actions for removing braces of one-line statements The EGit/JGit code style is to write the following: if (cond) { doSomething(); } as follows: if (cond) doSomething(); As this may need getting used to and as it comes up frequently in reviews, automate it by configuring it as a Java Editor Save Action on the projects. Change-Id: I9e998aa40f50bfa13a1d9887d267e0ecc9833ec9 Signed-off-by: Robin Stocker --- org.eclipse.egit.core.test/.settings/org.eclipse.jdt.ui.prefs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'org.eclipse.egit.core.test/.settings/org.eclipse.jdt.ui.prefs') diff --git a/org.eclipse.egit.core.test/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.egit.core.test/.settings/org.eclipse.jdt.ui.prefs index 66184464a9..9d8cd8009e 100644 --- a/org.eclipse.egit.core.test/.settings/org.eclipse.jdt.ui.prefs +++ b/org.eclipse.egit.core.test/.settings/org.eclipse.jdt.ui.prefs @@ -1,4 +1,4 @@ -#Wed Feb 03 18:26:19 PST 2010 +#Sun Jan 22 14:20:45 CET 2012 eclipse.preferences.version=1 editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true formatter_profile=_JGit Format @@ -15,6 +15,7 @@ sp_cleanup.add_missing_deprecated_annotations=false sp_cleanup.add_missing_methods=false sp_cleanup.add_missing_nls_tags=false sp_cleanup.add_missing_override_annotations=false +sp_cleanup.add_missing_override_annotations_interface_methods=false sp_cleanup.add_serial_version_id=false sp_cleanup.always_use_blocks=false sp_cleanup.always_use_parentheses_in_expressions=false @@ -29,7 +30,7 @@ sp_cleanup.make_parameters_final=false sp_cleanup.make_private_fields_final=false sp_cleanup.make_type_abstract_if_missing_method=false sp_cleanup.make_variable_declarations_final=false -sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_blocks=true sp_cleanup.never_use_parentheses_in_expressions=false sp_cleanup.on_save_use_additional_actions=true sp_cleanup.organize_imports=false @@ -52,7 +53,7 @@ sp_cleanup.remove_unused_private_methods=false sp_cleanup.remove_unused_private_types=false sp_cleanup.sort_members=false sp_cleanup.sort_members_all=false -sp_cleanup.use_blocks=false +sp_cleanup.use_blocks=true sp_cleanup.use_blocks_only_for_return_and_throw=false sp_cleanup.use_parentheses_in_expressions=false sp_cleanup.use_this_for_non_static_field_access=false -- cgit v1.2.3