Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eclipse preferences and setup document
- Loading branch information
Showing
4 changed files
with
391 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Eclipse Preferences | ||
|
||
If you use Eclipse as your IDE, these settings and files can be imported to apply | ||
this project's coding conventions to your workspace. | ||
|
||
Under Java -> Code Style: | ||
1. Check "Add @Override ...", and leave other checkboxes unchecked. | ||
1. Make sure "Exception variable name" is e. | ||
1. Import and apply the Clean-up, Code Templates and Formatter preference files. | ||
|
||
Under Java -> Editor -> Save Actions: | ||
1. Check "Perform the selected actions on save". | ||
1. Check "Additional actions". | ||
1. Click "Configure...". | ||
1. Under the "Code Organizing" tab, and check "Remove trailing whitespace" and "All lines". | ||
|
||
Under XML -> XML Files -> Editor: | ||
1. Check Indent using tabs. | ||
1. Set line width to 72 characters. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<profiles version="2"> | ||
<profile kind="CleanUpProfile" name="Fedora" version="2"> | ||
<setting id="cleanup.remove_unused_private_fields" value="true"/> | ||
<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/> | ||
<setting id="cleanup.never_use_blocks" value="false"/> | ||
<setting id="cleanup.remove_unused_private_methods" value="true"/> | ||
<setting id="cleanup.add_missing_deprecated_annotations" value="true"/> | ||
<setting id="cleanup.convert_to_enhanced_for_loop" value="true"/> | ||
<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/> | ||
<setting id="cleanup.sort_members" value="false"/> | ||
<setting id="cleanup.remove_unused_local_variables" value="true"/> | ||
<setting id="cleanup.never_use_parentheses_in_expressions" value="true"/> | ||
<setting id="cleanup.remove_unused_private_members" value="true"/> | ||
<setting id="cleanup.remove_unnecessary_casts" value="true"/> | ||
<setting id="cleanup.make_parameters_final" value="false"/> | ||
<setting id="cleanup.use_this_for_non_static_field_access" value="true"/> | ||
<setting id="cleanup.remove_private_constructors" value="true"/> | ||
<setting id="cleanup.use_blocks" value="true"/> | ||
<setting id="cleanup.always_use_this_for_non_static_method_access" value="false"/> | ||
<setting id="cleanup.remove_trailing_whitespaces_all" value="true"/> | ||
<setting id="cleanup.always_use_this_for_non_static_field_access" value="false"/> | ||
<setting id="cleanup.use_this_for_non_static_field_access_only_if_necessary" value="true"/> | ||
<setting id="cleanup.add_default_serial_version_id" value="true"/> | ||
<setting id="cleanup.make_type_abstract_if_missing_method" value="false"/> | ||
<setting id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class" value="true"/> | ||
<setting id="cleanup.make_variable_declarations_final" value="true"/> | ||
<setting id="cleanup.add_missing_nls_tags" value="false"/> | ||
<setting id="cleanup.format_source_code" value="true"/> | ||
<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/> | ||
<setting id="cleanup.add_missing_override_annotations" value="true"/> | ||
<setting id="cleanup.remove_unused_private_types" value="true"/> | ||
<setting id="cleanup.add_missing_methods" value="false"/> | ||
<setting id="cleanup.make_local_variable_final" value="false"/> | ||
<setting id="cleanup.correct_indentation" value="false"/> | ||
<setting id="cleanup.add_missing_override_annotations_interface_methods" value="true"/> | ||
<setting id="cleanup.remove_unused_imports" value="true"/> | ||
<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/> | ||
<setting id="cleanup.make_private_fields_final" value="true"/> | ||
<setting id="cleanup.add_generated_serial_version_id" value="false"/> | ||
<setting id="cleanup.organize_imports" value="true"/> | ||
<setting id="cleanup.remove_trailing_whitespaces" value="true"/> | ||
<setting id="cleanup.sort_members_all" value="false"/> | ||
<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/> | ||
<setting id="cleanup.add_missing_annotations" value="true"/> | ||
<setting id="cleanup.use_parentheses_in_expressions" value="true"/> | ||
<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="false"/> | ||
<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/> | ||
<setting id="cleanup.use_this_for_non_static_method_access" value="true"/> | ||
<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/> | ||
<setting id="cleanup.add_serial_version_id" value="true"/> | ||
<setting id="cleanup.format_source_code_changes_only" value="false"/> | ||
<setting id="cleanup.qualify_static_member_accesses_with_declaring_class" value="true"/> | ||
<setting id="cleanup.always_use_blocks" value="true"/> | ||
</profile> | ||
</profiles> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment">/** | ||
* @param ${param} the ${bare_field_name} to set | ||
*/</template><template autoinsert="true" context="delegatecomment_context" deleted="false" description="Comment for delegate methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment">/** | ||
* ${tags} | ||
* ${see_to_target} | ||
*/</template><template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">/** | ||
* @author Gregory Jansen | ||
* | ||
* ${tags} | ||
*/</template><template autoinsert="true" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment">/** | ||
* | ||
*/</template><template autoinsert="true" context="constructorcomment_context" deleted="false" description="Comment for created constructors" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment">/** | ||
* ${tags} | ||
*/</template><template autoinsert="true" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment">/** | ||
* ${tags} | ||
*/</template><template autoinsert="true" context="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment">/** | ||
* @return the ${bare_field_name} | ||
*/</template><template autoinsert="true" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment">/** | ||
* | ||
*/</template><template autoinsert="true" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment">/* (non-Javadoc) | ||
* ${see_to_overridden} | ||
*/</template></templates> |
Oops, something went wrong.