Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2012-01-22 13:23:43 +0000
committerRobin Stocker2012-01-22 13:28:25 +0000
commitf95c105980fc8dc1c356665bb796f256d62bf1ca (patch)
treea39febe933dd40e4e65a805b3cae8b884cc6a11b /org.eclipse.egit.mylyn.ui/.settings
parent03a111b4c460bb1443f50de3294da9424de0dbcd (diff)
downloadegit-f95c105980fc8dc1c356665bb796f256d62bf1ca.tar.gz
egit-f95c105980fc8dc1c356665bb796f256d62bf1ca.tar.xz
egit-f95c105980fc8dc1c356665bb796f256d62bf1ca.zip
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 <robin@nibor.org>
Diffstat (limited to 'org.eclipse.egit.mylyn.ui/.settings')
-rw-r--r--org.eclipse.egit.mylyn.ui/.settings/org.eclipse.jdt.ui.prefs7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.egit.mylyn.ui/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.egit.mylyn.ui/.settings/org.eclipse.jdt.ui.prefs
index c80f098886..4e2223308b 100644
--- a/org.eclipse.egit.mylyn.ui/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.egit.mylyn.ui/.settings/org.eclipse.jdt.ui.prefs
@@ -1,4 +1,4 @@
-#Wed Feb 03 18:26:10 PST 2010
+#Sun Jan 22 14:13:55 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

Back to the top