diff options
author | Lars Vogel | 2016-07-08 19:25:59 +0000 |
---|---|---|
committer | Lars Vogel | 2016-07-08 19:25:59 +0000 |
commit | 52592fd695654b8d0f0dabe224eeb9c68c5ab9f4 (patch) | |
tree | ee60fcb13b40505b190369aedb254a96a065d71a | |
parent | 4ab8c66995466f3030ea0f58424bd47112d24895 (diff) | |
download | eclipse.platform.text-52592fd695654b8d0f0dabe224eeb9c68c5ab9f4.tar.gz eclipse.platform.text-52592fd695654b8d0f0dabe224eeb9c68c5ab9f4.tar.xz eclipse.platform.text-52592fd695654b8d0f0dabe224eeb9c68c5ab9f4.zip |
Bug 497589 - Remove trailing whitespace fromI20160708-1700
org.eclipse.ui.workbench.texteditor
Change-Id: I6c83c39e4598f4d792c4e31c62177c81e224c75b
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
38 files changed, 255 insertions, 179 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.ui.workbench.texteditor/.settings/org.eclipse.jdt.core.prefs index 88a5e89b79c..81950492621 100644 --- a/org.eclipse.ui.workbench.texteditor/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.ui.workbench.texteditor/.settings/org.eclipse.jdt.core.prefs @@ -133,6 +133,7 @@ org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=warning org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning org.eclipse.jdt.core.compiler.source=1.8 +org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 @@ -143,11 +144,13 @@ org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_e org.eclipse.jdt.core.formatter.alignment_for_assignment=0 org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=48 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header=0 org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references=0 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 @@ -157,10 +160,12 @@ org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_type_arguments=0 +org.eclipse.jdt.core.formatter.alignment_for_type_parameters=0 org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 @@ -183,17 +188,17 @@ org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true org.eclipse.jdt.core.formatter.comment.format_header=false org.eclipse.jdt.core.formatter.comment.format_html=true org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=false +org.eclipse.jdt.core.formatter.comment.format_line_comments=true org.eclipse.jdt.core.formatter.comment.format_source_code=true org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true org.eclipse.jdt.core.formatter.comment.indent_root_tags=true org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert -org.eclipse.jdt.core.formatter.comment.line_length=100 +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=80 org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false @@ -203,7 +208,7 @@ org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true @@ -213,8 +218,9 @@ org.eclipse.jdt.core.formatter.indent_empty_lines=false org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert @@ -224,7 +230,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert @@ -300,7 +306,7 @@ org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert @@ -399,22 +405,34 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constan org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert org.eclipse.jdt.core.formatter.join_lines_in_comments=true -org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=true org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=200 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=true -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true +org.eclipse.jdt.core.formatter.lineSplit=120 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=3 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.parentheses_positions_in_annotation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_lambda_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause=common_lines org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true org.eclipse.jdt.core.formatter.tabulation.char=tab org.eclipse.jdt.core.formatter.tabulation.size=4 org.eclipse.jdt.core.formatter.use_on_off_tags=false org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true org.eclipse.jdt.core.incompatibleJDKLevel=ignore diff --git a/org.eclipse.ui.workbench.texteditor/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.ui.workbench.texteditor/.settings/org.eclipse.jdt.ui.prefs index b73bfac6f0d..baeee07a50d 100644 --- a/org.eclipse.ui.workbench.texteditor/.settings/org.eclipse.jdt.ui.prefs +++ b/org.eclipse.ui.workbench.texteditor/.settings/org.eclipse.jdt.ui.prefs @@ -1,5 +1,6 @@ eclipse.preferences.version=1 -formatter_profile=_JDT UI Code Style Conventions +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=org.eclipse.jdt.ui.default.eclipse_profile formatter_settings_version=12 org.eclipse.jdt.ui.exception.name=e org.eclipse.jdt.ui.gettersetter.use.is=true @@ -9,3 +10,60 @@ org.eclipse.jdt.ui.keywordthis=false org.eclipse.jdt.ui.ondemandthreshold=99 org.eclipse.jdt.ui.overrideannotation=true org.eclipse.jdt.ui.staticondemandthreshold=99 +sp_cleanup.add_default_serial_version_id=false +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=false +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=false +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_functional_interfaces=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=true +sp_cleanup.insert_inferred_type_arguments=false +sp_cleanup.make_local_variable_final=false +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_parentheses_in_expressions=false +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=false +sp_cleanup.remove_redundant_type_arguments=false +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=false +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=false +sp_cleanup.remove_unused_private_members=false +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_anonymous_class_creation=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_lambda=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=false +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=false diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/FocusedInformationPresenter.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/FocusedInformationPresenter.java index a0675a1e18c..dfdd43164ed 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/FocusedInformationPresenter.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/FocusedInformationPresenter.java @@ -34,7 +34,7 @@ import org.eclipse.jface.text.source.SourceViewerConfiguration; /** * Information presenter used to present focused ("sticky") information shells. - * + * * @since 3.5 */ public class FocusedInformationPresenter extends InformationPresenter { @@ -76,7 +76,7 @@ public class FocusedInformationPresenter extends InformationPresenter { return fControlCreator; } } - + /** * The default information control creator. */ @@ -86,14 +86,14 @@ public class FocusedInformationPresenter extends InformationPresenter { return new DefaultInformationControl(shell, true); } } - - + + private final ISourceViewer fSourceViewer; private final SourceViewerConfiguration fSourceViewerConfiguration; /** * Creates a focused information presenter and installs it on the source viewer. - * + * * @param sourceViewer the source viewer * @param sourceViewerConfiguration the configuration */ @@ -101,7 +101,7 @@ public class FocusedInformationPresenter extends InformationPresenter { super(new DefaultInformationControlCreator()); fSourceViewer= sourceViewer; fSourceViewerConfiguration= sourceViewerConfiguration; - + // sizes: see org.eclipse.jface.text.TextViewer.TEXT_HOVER_*_CHARS setSizeConstraints(100, 12, true, true); install(sourceViewer); @@ -116,7 +116,7 @@ public class FocusedInformationPresenter extends InformationPresenter { * @return <code>true</code> if successful, <code>false</code> otherwise */ public boolean openFocusedAnnotationHover(IAnnotationHover annotationHover, int line) { - + try { // compute the hover information Object hoverInfo; diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/HippieCompletionEngine.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/HippieCompletionEngine.java index a8db1336b85..b5e4596cf58 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/HippieCompletionEngine.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/HippieCompletionEngine.java @@ -223,14 +223,14 @@ public final class HippieCompletionEngine { } return uniqueSuggestions; } - - + + /** * Calculates the documents to be searched. Note that the first returned document is always from * the current editor and if we have no current editor, an empty list is returned even if there * are other documents available. - * + * * @param currentTextEditor this is the currently opened text editor. * @return A List of IDocument with the opened documents so that the first document in that list * is always the current document. @@ -271,7 +271,7 @@ public final class HippieCompletionEngine { computedDocuments.add(doc); } } - + //The first is always the one related to the passed currentTextEditor. computedDocuments.add(0, currentDocument); return computedDocuments; @@ -281,7 +281,7 @@ public final class HippieCompletionEngine { /** * Provides an iterator that will get the completions that start with the passed prefix after * the passed position (forward until the end of the document). - * + * * @param document the document to be scanned * @param prefix the prefix to search for * @param firstPosition the initial position in the document that the search will start from. In @@ -292,7 +292,7 @@ public final class HippieCompletionEngine { * and <code>false</code> is good for searching in other documents. * @return Iterator (for Strings) that will get the completions forward from the passed * position. - * + * * @since 3.6 */ public Iterator<String> getForwardIterator(IDocument document, CharSequence prefix, int firstPosition, boolean currentWordLast) { @@ -302,14 +302,14 @@ public final class HippieCompletionEngine { /** * Provides an iterator that will get the completions that start with the passed prefix before * the passed position (backwards until the start of the document). - * + * * @param document the document to be scanned * @param prefix the prefix to search for * @param firstPosition the initial position in the document that the search will start from. In * order to search from the end of the document use * <code>firstPosition=document.getLength()</code>. * @return Iterator that will get the completions backward from the passed position. - * + * * @since 3.6 */ public Iterator<String> getBackwardIterator(IDocument document, CharSequence prefix, int firstPosition) { @@ -320,7 +320,7 @@ public final class HippieCompletionEngine { * Provides an iterator that will get the completions for all the documents received, starting * at the "document" passed (first going backward and then forward from the position passed) and * later going forward through each of the "otherDocuments". - * + * * @param document the document to be scanned * @param otherDocuments the additional documents to be scanned * @param prefix the prefix to search for @@ -328,7 +328,7 @@ public final class HippieCompletionEngine { * @return Iterator that will first get the completions backward from the document passed, then * forward in that same document and when that is finished it will get it forward for * the other documents (in the same sequence the documents are available). - * + * * @since 3.6 */ public Iterator<String> getMultipleDocumentsIterator(IDocument document, List<IDocument> otherDocuments, CharSequence prefix, int firstPosition) { @@ -339,7 +339,7 @@ public final class HippieCompletionEngine { /** * Class that keeps the state while iterating the suggestions - * + * * @since 3.6 */ private final class MultipleDocumentsIterator implements Iterator<String> { @@ -399,12 +399,12 @@ public final class HippieCompletionEngine { /** * This method calculates the next token to be returned (so, after creating the class or * after calling next(), this function must be called). - * + * * It'll check which document should be used and will get the completions on that document * until some completion is found. - * + * * An empty completion is always added at the end. - * + * * After the empty completion, the next is set to null. */ private void calculateNext() { @@ -468,7 +468,7 @@ public final class HippieCompletionEngine { /** * We always calculate the next to see if it's available. - * + * * @return <code>true</code> if the next token to be returned is not null (we always * pre-calculate things) */ @@ -493,7 +493,7 @@ public final class HippieCompletionEngine { /** * Not supported! - * + * * @throws UnsupportedOperationException always. */ @Override @@ -507,7 +507,7 @@ public final class HippieCompletionEngine { /** * Base class for Iterator that gets the word completions in a document, and returns them one by * one (lazily gotten). - * + * * @since 3.6 */ private abstract class HippieCompletionIterator implements Iterator<String> { @@ -545,7 +545,7 @@ public final class HippieCompletionEngine { /** * Constructor - * + * * @param document the document to be scanned * @param prefix the prefix to search for * @param firstPosition the initial position in the document that the search will start @@ -601,7 +601,7 @@ public final class HippieCompletionEngine { /** * Subclasses must override to calculates whether we have a next element to be returned and * which element it is (set fHasNext and fNext). - * + * * @throws BadLocationException if we're at an invalid position in the document. */ protected abstract void calculateNext() throws BadLocationException; @@ -612,7 +612,7 @@ public final class HippieCompletionEngine { /** * Iterator that gets the word completions in a document, and returns them one by one (lazily * gotten) from the current position. - * + * * @since 3.6 */ private class HippieCompletionForwardIterator extends HippieCompletionIterator { @@ -699,7 +699,7 @@ public final class HippieCompletionEngine { /** * Checks the given region for a word to be returned in this iterator. - * + * * @param reg the region to check * @return the word region. * @throws BadLocationException if we're at an invalid position in the document. @@ -730,7 +730,7 @@ public final class HippieCompletionEngine { /** * Iterator that gets the word completions in a document, and returns them one by one (lazily * gotten) backward from the current position. - * + * * @since 3.6 */ private class HippieCompletionBackwardIterator extends HippieCompletionIterator { @@ -805,9 +805,9 @@ public final class HippieCompletionEngine { /** * Logs the exception. - * + * * @param e the exception - * + * * @since 3.6 */ private void log(BadLocationException e) { diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/SWTUtil.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/SWTUtil.java index 694dfd51ecd..619058f8a36 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/SWTUtil.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/SWTUtil.java @@ -38,7 +38,7 @@ public class SWTUtil { * @since 3.5 */ public static final int COMBO_VISIBLE_ITEM_COUNT= 30; - + /** * Returns a width hint for the given button. * diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java index 1f4b5aab26a..ac12e9cc0d2 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/DocumentLineDiffer.java @@ -86,7 +86,7 @@ public class DocumentLineDiffer implements ILineDiffer, IDocumentListener, IAnno /** * Custom range difference factory. - * + * * @since 3.5 */ private static class RangeDifferenceFactory extends AbstractRangeDifferenceFactory { @@ -1129,7 +1129,7 @@ public class DocumentLineDiffer implements ILineDiffer, IDocumentListener, IAnno * Converts a {@code RangeDifference[]} into an {@code ArrayList<QuickDiffRangeDifference>}. * This is unsafe in general, but OK if used carefully. * Workaround for <a href="https://bugs.eclipse.org/483319">bug 483319</a>. - * + * * @param ranges the ranges, <em>must</em> be of type {@link QuickDiffRangeDifference} * @return the ranges as a modifiable list */ @@ -1489,7 +1489,7 @@ public class DocumentLineDiffer implements ILineDiffer, IDocumentListener, IAnno }; } - + @Override public Position getPosition(Annotation annotation) { if (fRightDocument != null && annotation instanceof DiffRegion) { diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/QuickDiffRangeDifference.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/QuickDiffRangeDifference.java index 76d2d5d9009..818d013c0d3 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/QuickDiffRangeDifference.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/QuickDiffRangeDifference.java @@ -31,7 +31,7 @@ import org.eclipse.compare.rangedifferencer.RangeDifferencer; * character positions. For example, if an entity represents a line in a document, the start index * would be a line number and the count would be in lines. * </p> - * + * * @see RangeDifferencer * @since 3.0 (originally in org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer) */ @@ -42,7 +42,7 @@ public class QuickDiffRangeDifference extends org.eclipse.compare.rangedifferenc /** * Creates a new <code>RangeDifference</code> with the given change kind and left and right * ranges. - * + * * @param kind the kind of change * @param rightStart start index of entity on right side * @param rightLength number of entities on right side @@ -55,7 +55,7 @@ public class QuickDiffRangeDifference extends org.eclipse.compare.rangedifferenc /** * Creates a new <code>RangeDifference</code> with the given change kind. - * + * * @since 3.5 */ public QuickDiffRangeDifference() { @@ -64,7 +64,7 @@ public class QuickDiffRangeDifference extends org.eclipse.compare.rangedifferenc /** * Shifts the offset into the left document of the receiver. - * + * * @param shift the number of elements to shift */ public void shiftLeft(int shift) { diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/compare/equivalence/Hash.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/compare/equivalence/Hash.java index 30f753a5d06..196eebc9da9 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/compare/equivalence/Hash.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/compare/equivalence/Hash.java @@ -36,7 +36,7 @@ public abstract class Hash implements Cloneable { */ @Override public abstract boolean equals(Object obj); - + /** * @see java.lang.Object#hashCode() * @since 3.5 diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/compare/equivalence/IntHash.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/compare/equivalence/IntHash.java index c37a8d70a93..ad4a3da9022 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/compare/equivalence/IntHash.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/quickdiff/compare/equivalence/IntHash.java @@ -30,7 +30,7 @@ public final class IntHash extends Hash { return false; } - + @Override public int hashCode() { return fHash; diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractDocumentProvider.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractDocumentProvider.java index 3b54aa99d8e..0e4c2fcb980 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractDocumentProvider.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractDocumentProvider.java @@ -171,7 +171,7 @@ public abstract class AbstractDocumentProvider implements IDocumentProvider, IDo /** * Constant for representing the OK status. This is considered a value object. - * + * * @since 2.0 * @deprecated As of 3.6, replaced by {@link Status#OK_STATUS} */ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java index 0121690caf4..118cb06a39e 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java @@ -267,7 +267,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit /** * Tag used in the {@link IMemento} when saving and restoring the editor's selection offset. - * + * * @see #saveState(IMemento) * @see #restoreState(IMemento) * @see #doRestoreState(IMemento) @@ -277,7 +277,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit /** * Tag used in the {@link IMemento} when saving and restoring the editor's selection length. - * + * * @see #saveState(IMemento) * @see #restoreState(IMemento) * @see #doRestoreState(IMemento) @@ -287,7 +287,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit /** * Tag used in the {@link IMemento} when saving and restoring the editor's top pixel value. - * + * * @see #saveState(IMemento) * @see #restoreState(IMemento) * @see #doRestoreState(IMemento) @@ -298,7 +298,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit /** * Tag used in the {@link IMemento} when saving and restoring the editor's horizontal pixel * value. - * + * * @see #saveState(IMemento) * @see #restoreState(IMemento) * @see #doRestoreState(IMemento) @@ -325,7 +325,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit /** * The symbolic name of the block selection mode font. - * + * * @since 3.5 */ private static final String BLOCK_SELECTION_MODE_FONT= "org.eclipse.ui.workbench.texteditor.blockSelectionModeFont"; //$NON-NLS-1$ @@ -1871,10 +1871,10 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit return getInformationPresenter().openFocusedAnnotationHover(annotationHover, line); } - + /** * Returns the information presenter (creates it if necessary). - * + * * @return the information presenter * @since 3.6 */ @@ -2032,13 +2032,13 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * @since 3.3 */ public static final String PREFERENCE_RULER_CONTRIBUTIONS= "rulerContributions"; //$NON-NLS-1$ - + /** * A named preference that controls the display of whitespace characters. * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * <p> * The following preferences can be used for fine-grained configuration when enabled. * <ul> @@ -2056,7 +2056,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <li>{@link #PREFERENCE_WHITESPACE_CHARACTER_ALPHA_VALUE}</li> * </ul> * </p> - * + * * @since 3.3 */ public static final String PREFERENCE_SHOW_WHITESPACE_CHARACTERS= "showWhitespaceCharacters"; //$NON-NLS-1$ @@ -2067,7 +2067,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_LEADING_SPACES= "showLeadingSpaces"; //$NON-NLS-1$ @@ -2078,7 +2078,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_ENCLOSED_SPACES= "showEnclosedSpaces"; //$NON-NLS-1$ @@ -2089,7 +2089,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_TRAILING_SPACES= "showTrailingSpaces"; //$NON-NLS-1$ @@ -2101,7 +2101,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_LEADING_IDEOGRAPHIC_SPACES= "showLeadingIdeographicSpaces"; //$NON-NLS-1$ @@ -2113,7 +2113,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_ENCLOSED_IDEOGRAPHIC_SPACES= "showEnclosedIdeographicSpaces"; //$NON-NLS-1$ @@ -2125,7 +2125,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_TRAILING_IDEOGRAPHIC_SPACES= "showTrailingIdeographicSpaces"; //$NON-NLS-1$ @@ -2136,7 +2136,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_LEADING_TABS= "showLeadingTabs"; //$NON-NLS-1$ @@ -2147,7 +2147,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_ENCLOSED_TABS= "showEnclosedTabs"; //$NON-NLS-1$ @@ -2158,7 +2158,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_TRAILING_TABS= "showTrailingTabs"; //$NON-NLS-1$ @@ -2169,7 +2169,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_CARRIAGE_RETURN= "showCarriageReturn"; //$NON-NLS-1$ @@ -2180,7 +2180,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Boolean</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_SHOW_LINE_FEED= "showLineFeed"; //$NON-NLS-1$ @@ -2191,7 +2191,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * <p> * Value is of type <code>Integer</code>. * </p> - * + * * @since 3.7 */ public static final String PREFERENCE_WHITESPACE_CHARACTER_ALPHA_VALUE= "whitespaceCharacterAlphaValue"; //$NON-NLS-1$ @@ -2241,14 +2241,14 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit /** * Menu id used to contribute to the editor context menu of all textual editors. - * + * * @since 3.5 */ public static final String COMMON_EDITOR_CONTEXT_MENU_ID= "#AbstractTextEditorContext"; //$NON-NLS-1$ /** * Menu id used to contribute to the ruler context menu of all textual editors. - * + * * @since 3.5 */ public static final String COMMON_RULER_CONTEXT_MENU_ID= "#AbstractTextEditorRulerContext"; //$NON-NLS-1$ @@ -3447,7 +3447,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit if (fRulerContextMenuId == null) fRulerContextMenuId= DEFAULT_RULER_CONTEXT_MENU_ID; - + initializeZoomGestures(rulerControl, fSourceViewer); getSite().setSelectionProvider(getSelectionProvider()); @@ -3754,7 +3754,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit /** * Disposes of the non-shared font. - * + * * @since 3.5 */ private void disposeFont() { @@ -4451,7 +4451,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit fKeyBindingSupportForQuickAssistant.dispose(); fKeyBindingSupportForQuickAssistant= null; } - + if (fInformationPresenter != null) { fInformationPresenter.uninstall(); fInformationPresenter= null; @@ -4522,7 +4522,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * {@link JFaceResources#TEXT_FONT} is returned and the font is looked up in this editor's * preference store. * </p> - * + * * @return a String with the key * @since 2.1 */ @@ -5613,7 +5613,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * Registers the given undo/redo action under the given ID and ensures that previously installed * actions get disposed. It also takes care of re-registering the new action with the global * action handler. - * + * * @param actionId the action id under which to register the action * @param action the action to register or <code>null</code> to dispose them * @since 3.1 @@ -5854,7 +5854,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS); setAction(ITextEditorActionConstants.CONTENT_ASSIST, action); markAsStateDependentAction(ITextEditorActionConstants.CONTENT_ASSIST, true); - + action= new TextOperationAction(EditorMessages.getBundleForConstructedKeys(), "Editor.ContentAssistContextInformation.", this, ISourceViewer.CONTENTASSIST_CONTEXT_INFORMATION); //$NON-NLS-1$ action.setHelpContextId(IAbstractTextEditorHelpContextIds.CONTENT_ASSIST_CONTEXT_INFORMATION_ACTION); action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION); @@ -7246,7 +7246,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit * By default block selection mode is supported. Subclasses may override this method to disable * it. * </p> - * + * * @return <code>true</code> if block selection mode is supported, <code>false</code> otherwise * @since 3.5 */ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextZoomHandler.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextZoomHandler.java index 684e4c203cd..d65e4898905 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextZoomHandler.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextZoomHandler.java @@ -110,7 +110,7 @@ abstract class AbstractTextZoomHandler extends AbstractHandler { } /** - * + * * @param referenceFontName the font name on which change is initially requested * @param fontRegistry the font registry * @return the names of the fonts that should be modified together with the referenceFontName. diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/BlockSelectionModeToggleAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/BlockSelectionModeToggleAction.java index e81d3edfbce..ac5d37df572 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/BlockSelectionModeToggleAction.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/BlockSelectionModeToggleAction.java @@ -17,14 +17,14 @@ import org.eclipse.jface.action.IAction; /** * This action toggles the block (aka column) selection mode. - * + * * @since 3.5 */ final class BlockSelectionModeToggleAction extends TextEditorAction { /** * Construct the action and initialize its state. - * + * * @param resourceBundle the resource bundle to construct label and tooltip from * @param prefix the prefix to use for constructing resource bundle keys * @param editor the editor this action is associated with diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/CaseAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/CaseAction.java index ac4f577fb10..0aa0220d789 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/CaseAction.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/CaseAction.java @@ -80,7 +80,7 @@ public class CaseAction extends TextEditorAction { try { if (JFaceTextUtil.isEmpty(viewer, selection)) return; - + IRegion[] ranges= JFaceTextUtil.getCoveredRanges(viewer, selection); if (ranges.length > 1 && viewer instanceof ITextViewerExtension) ((ITextViewerExtension) viewer).getRewriteTarget().beginCompoundChange(); diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DeleteLineAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DeleteLineAction.java index 9c5ebe7b887..f1450489d75 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DeleteLineAction.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/DeleteLineAction.java @@ -61,7 +61,7 @@ public class DeleteLineAction extends TextEditorAction { /** * Creates a line deletion action. - * + * * @param bundle the resource bundle for UI strings * @param prefix the prefix for the property keys into <code>bundle</code> * @param editor the editor @@ -92,7 +92,7 @@ public class DeleteLineAction extends TextEditorAction { /** * Creates a line deletion action. - * + * * @param editor the editor * @param type the line deletion type, must be one of <code>WHOLE_LINE</code>, * <code>TO_BEGINNING</code> or <code>TO_END</code> @@ -106,7 +106,7 @@ public class DeleteLineAction extends TextEditorAction { /** * Returns the default resource bundle prefix for the given arguments. - * + * * @param type the line deletion type, must be one of <code>WHOLE_LINE</code>, * <code>TO_BEGINNING</code> or <code>TO_END</code> * @param copyToClipboard if <code>true</code>, the contents of the deleted line are copied to diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceAction.java index f2099d0603d..e6823aaf518 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceAction.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceAction.java @@ -103,7 +103,7 @@ public class FindReplaceAction extends ResourceAction implements IUpdate { /** * Returns the find/replace dialog. - * + * * @return the find/replace dialog */ public FindReplaceDialog getDialog() { @@ -198,7 +198,7 @@ public class FindReplaceAction extends ResourceAction implements IUpdate { /** * Checks if the dialogs shell is the same as the given <code>shell</code> and if not clears * the stub and closes the dialog. - * + * * @param shell the shell check * @since 3.3 */ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java index d4ef809b333..357fc551dda 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java @@ -849,7 +849,7 @@ class FindReplaceDialog extends Dialog { /** * Returns the position of the specified search string, or <code>-1</code> if the string can not * be found when searching using the given options. - * + * * @param findString the string to search for * @param startPosition the position at which to start the search * @param forwardSearch the direction of the search @@ -939,7 +939,7 @@ class FindReplaceDialog extends Dialog { /** * Returns whether the specified search string can be found using the given options. - * + * * @param findString the string to search for * @param forwardSearch the direction of the search * @param caseSensitive should the search be case sensitive @@ -949,7 +949,7 @@ class FindReplaceDialog extends Dialog { * @param regExSearch if <code>true</code> findString represents a regular expression * @param beep if <code>true</code> beeps when search does not find a match or needs to wrap * @return <code>true</code> if the search string can be found using the given options - * + * * @since 3.0 */ private boolean findNext(String findString, boolean forwardSearch, boolean caseSensitive, boolean wrapSearch, boolean wholeWord, boolean incremental, boolean regExSearch, boolean beep) { @@ -1278,7 +1278,7 @@ class FindReplaceDialog extends Dialog { /** * Stores the button and its mnemonic in {@link #fMnemonicButtonMap}. - * + * * @param button button whose mnemonic has to be stored * @since 3.7 */ @@ -1460,7 +1460,7 @@ class FindReplaceDialog extends Dialog { /** * Locates the user's findString in the text of the target. - * + * * @param mustInitIncrementalBaseLocation <code>true</code> if base location must be initialized * @param beep if <code>true</code> beeps when search does not find a match or needs to wrap * @param forwardSearch the search direction diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java index cc9d69c2607..11348d56d9b 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java @@ -34,7 +34,7 @@ import org.eclipse.ui.internal.texteditor.TextEditorPlugin; /** * Goes to last edit position. - * + * * @since 3.5 */ public class GotoLastEditPositionAction extends Action implements IWorkbenchWindowActionDelegate { diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java index 4e2c0c09a33..258de321354 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java @@ -51,7 +51,7 @@ import org.eclipse.ui.internal.texteditor.TextEditorPlugin; * <p> * This class may be instantiated; it is not intended to be subclassed. * </p> - * + * * @noextend This class is not intended to be subclassed by clients. */ public class GotoLineAction extends TextEditorAction { @@ -83,7 +83,7 @@ public class GotoLineAction extends TextEditorAction { /** * Standard input dialog with custom dialog bounds strategy and settings. - * + * * @since 2.0 */ static class GotoLineDialog extends InputDialog { @@ -124,7 +124,7 @@ public class GotoLineAction extends TextEditorAction { /** * Creates a new action for the given text editor. The action configures its visual * representation from the given resource bundle. - * + * * @param bundle the resource bundle * @param prefix a prefix to be prepended to the various resource keys (described in * <code>ResourceAction</code> constructor), or <code>null</code> if none @@ -140,7 +140,7 @@ public class GotoLineAction extends TextEditorAction { /** * Creates a new action for the given text editor. The action configures its visual * representation with default values. - * + * * @param editor the text editor * @see TextEditorAction#TextEditorAction(ResourceBundle, String, ITextEditor) * @since 3.5 @@ -153,7 +153,7 @@ public class GotoLineAction extends TextEditorAction { /** * Jumps to the given line. - * + * * @param line the line to jump to */ private void gotoLine(int line) { diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/HippieCompleteAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/HippieCompleteAction.java index fdac907f881..c19a9f7c12e 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/HippieCompleteAction.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/HippieCompleteAction.java @@ -64,35 +64,35 @@ final class HippieCompleteAction extends TextEditorAction { /** * Iterator of Strings with suggestions computed when the completion action is invoked - * + * * @since 3.6 */ private final Iterator<String> suggestions; /** * List of Strings with the suggestions that are already consumed from the iterator - * + * * @since 3.6 */ private final List<String> consumedSuggestions; /** * Do we have only 1 (empty) completion available? - * + * * @since 3.6 */ private final boolean hasOnly1EmptySuggestion; /** * Set with the String completions found so that we can make them unique - * + * * @since 3.6 */ private final HashSet<String> alreadyFound; /** * Create a new completion state object - * + * * @param suggestions the iterator of Strings with possible completions * @param startOffset the position in the parent document at which the completions will be * inserted. @@ -129,7 +129,7 @@ final class HippieCompleteAction extends TextEditorAction { /** * Advances the completion state to represent the next completion (starts cycling when it * gets to the end). - * + * * @return The next suggestion to be shown to the user. * @since 3.6 */ @@ -169,7 +169,7 @@ final class HippieCompleteAction extends TextEditorAction { /** * Adds a new suggestion to the found and consumed suggestions - * + * * @param suggestion the suggestion to be added * @since 3.6 */ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/HyperlinkDetectorDescriptor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/HyperlinkDetectorDescriptor.java index 37f2c025c2c..18c2790d47d 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/HyperlinkDetectorDescriptor.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/HyperlinkDetectorDescriptor.java @@ -83,7 +83,7 @@ public final class HyperlinkDetectorDescriptor { /** * Creates a new {@link AbstractHyperlinkDetector}. - * + * * @return the hyperlink detector or <code>null</code> if the plug-in isn't loaded yet * @throws CoreException if a failure occurred during creation * @deprecated As of 3.9, replaced by {@link #createHyperlinkDetectorImplementation()} @@ -95,7 +95,7 @@ public final class HyperlinkDetectorDescriptor { /** * Creates a new {@link IHyperlinkDetector}. - * + * * @return the hyperlink detector or <code>null</code> if the plug-in isn't loaded yet * @throws CoreException if a failure occurred during creation * @since 3.9 diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IAbstractTextEditorHelpContextIds.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IAbstractTextEditorHelpContextIds.java index 7d5a7e6ccd9..a32351aba46 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IAbstractTextEditorHelpContextIds.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IAbstractTextEditorHelpContextIds.java @@ -25,7 +25,7 @@ import org.eclipse.ui.PlatformUI; * <p> * This interface contains constants only; it is not intended to be implemented. * </p> - * + * * @noimplement This interface is not intended to be implemented by clients. * @noextend This interface is not intended to be extended by clients. */ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IDocumentProvider.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IDocumentProvider.java index db7668816ac..664750a316d 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IDocumentProvider.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IDocumentProvider.java @@ -134,7 +134,7 @@ public interface IDocumentProvider { /** * Returns the time stamp of the last synchronization of the given element and its provided * document. - * + * * @param element the element * @return the synchronization stamp of the given element */ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditor.java index b7dd0a9ac45..b40299a9ec2 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditor.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditor.java @@ -48,7 +48,7 @@ import org.eclipse.ui.IEditorPart; * selection mode.</li> * </ul> * </p> - * + * * @see org.eclipse.ui.texteditor.IDocumentProvider * @see org.eclipse.jface.text.source.IAnnotationModel * @see org.eclipse.ui.texteditor.ITextEditorExtension @@ -157,7 +157,7 @@ public interface ITextEditor extends IEditorPart { /** * Sets the highlighted range of this text editor to the specified region. - * + * * @param offset the offset of the highlighted range * @param length the length of the highlighted range * @param moveCursor <code>true</code> if the cursor should be moved to the start of the diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorActionConstants.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorActionConstants.java index a1a2fd009a5..7be6dfba794 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorActionConstants.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorActionConstants.java @@ -605,7 +605,7 @@ public interface ITextEditorActionConstants extends IWorkbenchActionConstants { /** * Name of the content assist action. * Value: <code>"ContentAssistProposal"</code> - * + * * @since 3.5 */ String CONTENT_ASSIST= "ContentAssistProposal"; //$NON-NLS-1$ @@ -613,7 +613,7 @@ public interface ITextEditorActionConstants extends IWorkbenchActionConstants { /** * Name of the content assist context information action. * Value: <code>"ContentAssistContextInformation"</code> - * + * * @since 3.5 */ String CONTENT_ASSIST_CONTEXT_INFORMATION= "ContentAssistContextInformation"; //$NON-NLS-1$ @@ -699,7 +699,7 @@ public interface ITextEditorActionConstants extends IWorkbenchActionConstants { /** * Name of the action to open the hyperlink at the caret location or to display a chooser * if more than one hyperlink is available. - * Value: <code>"OpenHyperlink"</code> + * Value: <code>"OpenHyperlink"</code> * @since 3.7 */ public static String OPEN_HYPERLINK= "OpenHyperlink"; //$NON-NLS-1$ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorActionDefinitionIds.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorActionDefinitionIds.java index a532d0c1c46..d6f74130564 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorActionDefinitionIds.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorActionDefinitionIds.java @@ -23,7 +23,7 @@ import org.eclipse.jface.text.information.IInformationProvider; * <p> * This interface must not be implemented by clients. * </p> - * + * * @since 2.0 * @noimplement This interface is not intended to be implemented by clients. * @noextend This interface is not intended to be extended by clients. @@ -576,7 +576,7 @@ public interface ITextEditorActionDefinitionIds extends IWorkbenchActionDefiniti /** * Command ID of the command to toggle block selection mode. Value: * <code>"org.eclipse.ui.edit.text.toggleBlockSelectionMode"</code>). - * + * * @since 3.5 */ String BLOCK_SELECTION_MODE= "org.eclipse.ui.edit.text.toggleBlockSelectionMode"; //$NON-NLS-1$ @@ -592,7 +592,7 @@ public interface ITextEditorActionDefinitionIds extends IWorkbenchActionDefiniti /** * Command ID of the command to display a sticky ruler hover for the current caret location. * Value <code>"org.eclipse.ui.edit.text.showChangeRulerInformation"</code>. - * + * * @since 3.6 */ public static final String SHOW_CHANGE_RULER_INFORMATION_ID= "org.eclipse.ui.edit.text.showChangeRulerInformation"; //$NON-NLS-1$ @@ -600,7 +600,7 @@ public interface ITextEditorActionDefinitionIds extends IWorkbenchActionDefiniti /** * Command ID of the command to display a sticky ruler annotation hover for the current caret * location. Value <code>"org.eclipse.ui.edit.text.showRulerAnnotationInformation"</code>. - * + * * @since 3.6 */ public static final String SHOW_RULER_ANNOTATION_INFORMATION_ID= "org.eclipse.ui.edit.text.showRulerAnnotationInformation"; //$NON-NLS-1$ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorExtension5.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorExtension5.java index ffe638be747..2bf88f9cc73 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorExtension5.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ITextEditorExtension5.java @@ -21,14 +21,14 @@ package org.eclipse.ui.texteditor; * <p> * This interface may be implemented by clients. * </p> - * + * * @since 3.5 */ public interface ITextEditorExtension5 { /** * Returns <code>true</code> if the receiver is in block (aka column) selection mode, * <code>false</code> otherwise. - * + * * @return the receiver's block selection state */ boolean isBlockSelectionModeEnabled(); diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IWorkbenchActionDefinitionIds.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IWorkbenchActionDefinitionIds.java index 1b520e3815a..e409dc50dae 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IWorkbenchActionDefinitionIds.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IWorkbenchActionDefinitionIds.java @@ -18,7 +18,7 @@ import org.eclipse.ui.IWorkbenchCommandConstants; * <p> * This interface must not be implemented by clients. * </p> - * + * * @since 2.0 * @noimplement This interface is not intended to be implemented by clients. * @noextend This interface is not intended to be extended by clients. @@ -30,7 +30,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the file print action. * Value: <code>"org.eclipse.ui.file.print"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#FILE_PRINT} */ @Deprecated @@ -39,7 +39,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the file save action. * Value: <code>"org.eclipse.ui.file.save"</code> - * + * * @deprecated As of 3.5, no longer used */ @Deprecated @@ -48,7 +48,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the file revert action. * Value: <code>"org.eclipse.ui.edit.revertToSaved"</code> - * + * * @deprecated As of 3.4, replaced by {@link #REVERT} */ @Deprecated @@ -57,7 +57,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the file revert action. * Value: <code>"org.eclipse.ui.file.revert"</code> - * + * * @since 3.4 * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#FILE_REVERT} */ @@ -67,7 +67,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the file properties action. * Value: <code>"org.eclipse.ui.file.properties"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#FILE_PROPERTIES} * @since 3.1 */ @@ -80,9 +80,9 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit cut action. * Value: <code>"org.eclipse.ui.edit.cut"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_CUT} - * + * */ @Deprecated public static final String CUT= IWorkbenchCommandConstants.EDIT_CUT; @@ -90,7 +90,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit copy action. * Value: <code>"org.eclipse.ui.edit.copy"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_COPY} */ @Deprecated @@ -99,7 +99,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit past action. * Value: <code>"org.eclipse.ui.edit.paste"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_PASTE} */ @Deprecated @@ -108,7 +108,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit undo action. * Value: <code>"org.eclipse.ui.edit.undo"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_UNDO} */ @Deprecated @@ -117,7 +117,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit redo action. * Value: <code>"org.eclipse.ui.edit.redo"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_REDO} */ @Deprecated @@ -126,7 +126,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit delete action. * Value: <code>"org.eclipse.ui.edit.delete"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_DELETE} */ @Deprecated @@ -135,7 +135,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit select all action. * Value: <code>"org.eclipse.ui.edit.selectAll"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_SELECT_ALL} */ @Deprecated @@ -144,7 +144,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit find/replace action. * Value: <code>"org.eclipse.ui.edit.findReplace"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_FIND_AND_REPLACE} */ @Deprecated @@ -153,7 +153,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit add bookmark action. * Value: <code>"org.eclipse.ui.edit.addBookmark"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_ADD_BOOKMARK} */ @Deprecated @@ -162,7 +162,7 @@ public interface IWorkbenchActionDefinitionIds { /** * Action definition id of the edit add task action. * Value: <code>"org.eclipse.ui.edit.addTask"</code> - * + * * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#EDIT_ADD_TASK} */ @Deprecated @@ -171,7 +171,7 @@ public interface IWorkbenchActionDefinitionIds { /** * The command identifier for the "move" action that typically appears in the file menu. * Value: <code>"org.eclipse.ui.edit.move"</code> - * + * * @since 3.0 * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#FILE_MOVE} */ @@ -181,7 +181,7 @@ public interface IWorkbenchActionDefinitionIds { /** * The command identifier for the "rename" action that typically appears in the file menu. * Value: <code>"org.eclipse.ui.edit.rename"</code> - * + * * @since 3.0 * @deprecated As of 3.5, replaced by {@link IWorkbenchCommandConstants#FILE_RENAME} */ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/InfoForm.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/InfoForm.java index 03bbb228b47..c45283055a5 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/InfoForm.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/InfoForm.java @@ -209,7 +209,7 @@ public class InfoForm { label.setForeground(fForegroundColor); return label; } - + private StyledText createText(Composite parent, String text) { StyledText widget = new StyledText(parent, SWT.READ_ONLY | SWT.MULTI); GridData data= new GridData(GridData.FILL_HORIZONTAL); diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/RecenterAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/RecenterAction.java index fbf795cabcb..bc0f1669b92 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/RecenterAction.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/RecenterAction.java @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * Daesung Ha <nberserk@gmail.com> - supports top and bottom scrolling - https://bugs.eclipse.org/bugs/show_bug.cgi?id=412267 + * Daesung Ha <nberserk@gmail.com> - supports top and bottom scrolling - https://bugs.eclipse.org/bugs/show_bug.cgi?id=412267 *******************************************************************************/ package org.eclipse.ui.texteditor; @@ -68,7 +68,7 @@ public class RecenterAction extends TextEditorAction { int rowsPerScreen= height / lineHeight; int caretOffset= st.getCaretOffset(); - int caretLine= st.getLineAtOffset(caretOffset); + int caretLine= st.getLineAtOffset(caretOffset); if (caretOffset==fPrevOffset) { // if successive call in same position fDestPos++; fDestPos%= RECENTER_POS_SIZE; @@ -76,7 +76,7 @@ public class RecenterAction extends TextEditorAction { fDestPos= RECENTER_MIDDLE; } fPrevOffset= caretOffset; - + int line= 0; switch (fDestPos) { case RECENTER_MIDDLE: @@ -90,7 +90,7 @@ public class RecenterAction extends TextEditorAction { break; default: break; - } + } st.setTopIndex(line); } }
\ No newline at end of file diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java index a8ceb1c6c95..aff66c1313b 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java @@ -462,12 +462,12 @@ public class SourceViewerDecorationSupport { /** * Sets the preference keys for the matching character painter. - * + * * <p> * Use {@link #setMatchingCharacterPainterPreferenceKeys(String, String, String, String)} if * highlighting of character at caret location or enclosing peer characters is required. * </p> - * + * * @param enableKey the preference key for the matching character painter * @param colorKey the preference key for the color used by the matching character painter */ @@ -477,14 +477,14 @@ public class SourceViewerDecorationSupport { /** * Sets the preference keys for the matching character painter. - * + * * @param enableKey the preference key for the matching character painter * @param colorKey the preference key for the color used by the matching character painter * @param highlightCharacterAtCaretLocationKey the preference key for highlighting character at * caret location * @param enclosingPeerCharactersKey the preference key for highlighting enclosing peer * characters - * + * * @since 3.8 */ public void setMatchingCharacterPainterPreferenceKeys(String enableKey, String colorKey, String highlightCharacterAtCaretLocationKey, String enclosingPeerCharactersKey) { @@ -729,7 +729,7 @@ public class SourceViewerDecorationSupport { /** * Tells whether character at caret location is shown. - * + * * @return <code>true</code> if character at caret location is shown */ private boolean isCharacterAtCaretLocationShown() { @@ -740,7 +740,7 @@ public class SourceViewerDecorationSupport { /** * Tells whether enclosing peer characters are shown. - * + * * @return <code>true</code> if the enclosing peer characters are shown */ private boolean areEnclosingPeerCharactersShown() { diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java index 9a7b9eba4ff..5210654effe 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java @@ -256,7 +256,7 @@ public class StatusLineContributionItem extends ContributionItem implements ISta fLabel.setToolTipText(escapedErrorText); else fLabel.setToolTipText(null); - + } else { String escapedText= escape(fText); fLabel.setForeground(fLabel.getParent().getForeground()); diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java index 01c090cffe0..5cd1851f915 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java @@ -65,7 +65,7 @@ public class StatusTextEditor extends AbstractTextEditor { */ public void updatePartControl(IEditorInput input) { boolean restoreFocus= false; - + if (fStatusControl != null) { if (!fStatusControl.isDisposed()) { restoreFocus= containsFocus(fStatusControl); @@ -109,7 +109,7 @@ public class StatusTextEditor extends AbstractTextEditor { } return focusControl == fParent; } - + @Override public void setFocus() { if (fStatusControl != null && !fStatusControl.isDisposed()) { diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/AbstractTemplatesPage.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/AbstractTemplatesPage.java index d873cc51c50..0fcb13d7ddd 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/AbstractTemplatesPage.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/AbstractTemplatesPage.java @@ -647,7 +647,7 @@ public abstract class AbstractTemplatesPage extends Page implements ITemplatesPa /** * Returns the template store used in this page. - * + * * @return the template store * @since 3.6 public, before it was protected */ @@ -1215,7 +1215,7 @@ public abstract class AbstractTemplatesPage extends Page implements ITemplatesPa /** * Returns the currently selected templates - * + * * @return selected templates * @since 3.6 public, before it was private */ diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ITemplatesPage.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ITemplatesPage.java index 7a69c707dd5..db02370d260 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ITemplatesPage.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ITemplatesPage.java @@ -27,7 +27,7 @@ import org.eclipse.ui.part.IPageBookViewPage; * <p> * Clients can either implement this interface directly or subclass the * {@link AbstractTemplatesPage}. - * + * * @see org.eclipse.ui.texteditor.templates.ITemplatesPageExtension * @see TemplatesView * @since 3.4 diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ITemplatesPageExtension.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ITemplatesPageExtension.java index 9b5b0c3fdfd..b358e537b8d 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ITemplatesPageExtension.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/ITemplatesPageExtension.java @@ -30,7 +30,7 @@ public interface ITemplatesPageExtension { /** * Returns template store associated with this page. - * + * * @return template store */ TemplateStore getTemplateStore(); diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java index b1456157397..c232995ef26 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java @@ -690,7 +690,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I * <p> * The default implementation rejects invalid XML characters. * </p> - * + * * @param pattern the pattern to verify * @return <code>true</code> if the pattern is valid * @since 3.7 protected, before it was private @@ -893,7 +893,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I gc.setFont(JFaceResources.getDialogFont()); TemplateViewerComparator viewerComparator= new TemplateViewerComparator(); - + TableColumn column1= new TableColumn(table, SWT.NONE); column1.setText(TemplatesMessages.TemplatePreferencePage_column_name); int minWidth= computeMinimumColumnWidth(gc, TemplatesMessages.TemplatePreferencePage_column_name); @@ -926,11 +926,11 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I fTableViewer.setLabelProvider(new TemplateLabelProvider()); fTableViewer.setContentProvider(new TemplateContentProvider()); fTableViewer.setComparator(viewerComparator); - + // Specify default sorting table.setSortColumn(column1); table.setSortDirection(viewerComparator.getDirection()); - + fTableViewer.addDoubleClickListener(new IDoubleClickListener() { @Override public void doubleClick(DoubleClickEvent e) { @@ -952,7 +952,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I d.setEnabled(event.getChecked()); } }); - + BidiUtils.applyTextDirection(fTableViewer.getControl(), BidiUtils.BTD_DEFAULT); Composite buttons= new Composite(innerParent, SWT.NONE); @@ -1542,7 +1542,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I protected TableViewer getTableViewer() { return fTableViewer; } - + private final class TemplateViewerComparator extends ViewerComparator { private int fSortColumn; @@ -1556,7 +1556,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I /** * Returns the {@linkplain SWT} style constant for the sort direction. - * + * * @return {@link SWT#DOWN} for asc sorting, {@link SWT#UP} otherwise */ public int getDirection() { @@ -1566,7 +1566,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I /** * Sets the sort column. If the newly set sort column equals the previous set sort column, * the sort direction changes. - * + * * @param column New sort column */ public void setColumn(int column) { @@ -1593,7 +1593,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I return super.compare(viewer, e1, e2); } } - + private final class TemplateColumnSelectionAdapter extends SelectionAdapter { private final TableColumn fTableColumn; diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java index 7d37f1381d9..647d916a1ed 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatesView.java @@ -160,7 +160,7 @@ public final class TemplatesView extends PageBookView { /** * Returns the template store of the current page. - * + * * @return the template store, or <code>null</code> if the current page does not provide that * information * @since 3.6 @@ -174,7 +174,7 @@ public final class TemplatesView extends PageBookView { /** * Returns the currently selected templates. - * + * * @return array of selected templates, or <code>null</code> if the current page does not * provide that information * @since 3.6 |