diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java index 7f9fb1f6237..0eea6b39633 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java @@ -46,7 +46,7 @@ public interface ICHelpContextIds { public static final String PREVIOUS_PROBLEM_ACTION= PREFIX + "previous_problem_action"; //$NON-NLS-1$ public static final String GOTO_NEXT_ERROR_ACTION= PREFIX + "goto_next_error_action"; //$NON-NLS-1$ public static final String GOTO_PREVIOUS_ERROR_ACTION= PREFIX + "goto_previous_error_action"; //$NON-NLS-1$ - public static final String TOGGLE_MARK_OCCURRENCES_ACTION= PREFIX + "toggle_mark_occurrences_action"; //$NON-NLS-1$ + public static final String TOGGLE_MARK_OCCURRENCES_ACTION= PREFIX + "toggle_mark_occurrences_action_context"; //$NON-NLS-1$ // Preference/property pages public static final String C_PREF_PAGE = PREFIX + "c_pref"; //$NON-NLS-1$ diff --git a/doc/org.eclipse.cdt.doc.user/contexts_CDT.xml b/doc/org.eclipse.cdt.doc.user/contexts_CDT.xml index 99b6e9f95b5..e8d707f1708 100644 --- a/doc/org.eclipse.cdt.doc.user/contexts_CDT.xml +++ b/doc/org.eclipse.cdt.doc.user/contexts_CDT.xml @@ -346,5 +346,8 @@ Specify the templates used for code generation and new files. + + Allows you to switch mark occurrences on and off. + diff --git a/doc/org.eclipse.cdt.doc.user/images/mark_occurrences.png b/doc/org.eclipse.cdt.doc.user/images/mark_occurrences.png new file mode 100644 index 00000000000..6cef6c72c3e Binary files /dev/null and b/doc/org.eclipse.cdt.doc.user/images/mark_occurrences.png differ diff --git a/doc/org.eclipse.cdt.doc.user/reference/cdt_o_ceditor_pref.htm b/doc/org.eclipse.cdt.doc.user/reference/cdt_o_ceditor_pref.htm index fb587552654..4c364ecfa25 100644 --- a/doc/org.eclipse.cdt.doc.user/reference/cdt_o_ceditor_pref.htm +++ b/doc/org.eclipse.cdt.doc.user/reference/cdt_o_ceditor_pref.htm @@ -19,6 +19,7 @@     Advanced preferences
Folding preferences
Hovers preferences
+ Mark Occurrences preferences
Syntax Coloring preferences
Templates preferences
Typing preferences diff --git a/doc/org.eclipse.cdt.doc.user/reference/cdt_o_ref.htm b/doc/org.eclipse.cdt.doc.user/reference/cdt_o_ref.htm index 723c0d91f92..2b49b242fc5 100644 --- a/doc/org.eclipse.cdt.doc.user/reference/cdt_o_ref.htm +++ b/doc/org.eclipse.cdt.doc.user/reference/cdt_o_ref.htm @@ -57,6 +57,7 @@ Advanced preferences
Folding preferences
Hovers preferences
+ Mark Occurrences preferences
Syntax Coloring preferences
Templates preferences
Typing preferences
diff --git a/doc/org.eclipse.cdt.doc.user/reference/cdt_u_c_editor_mark_occurrences.htm b/doc/org.eclipse.cdt.doc.user/reference/cdt_u_c_editor_mark_occurrences.htm new file mode 100644 index 00000000000..55bf0b721a8 --- /dev/null +++ b/doc/org.eclipse.cdt.doc.user/reference/cdt_u_c_editor_mark_occurrences.htm @@ -0,0 +1,52 @@ + + + + + +Mark Occurrences + + + + +

Mark Occurrences

+

Indicate your preferences for the Mark Occurrences settings on the Opens the Mark Occurrences preference page C/C++ > Editor > Mark Occurrences preference page.

+ + + + + + + + + + + + + + + +
+

Option

+
+

Description

+
+

Default

+
+

Mark occurrences of the selected element in the current file

+
+

If enabled, then you'll see within a file, where a variable, function, method, type, macro or other element is referenced.

+
+

On

+
+ +

Related concepts
+Coding aids

+

Related tasks +
+Customizing the C/C++ editor

+

Related reference +
+C/C++ editor preferences

+ + + diff --git a/doc/org.eclipse.cdt.doc.user/reference/cdt_u_toolbar.htm b/doc/org.eclipse.cdt.doc.user/reference/cdt_u_toolbar.htm index c3ee533603f..ad118522043 100644 --- a/doc/org.eclipse.cdt.doc.user/reference/cdt_u_toolbar.htm +++ b/doc/org.eclipse.cdt.doc.user/reference/cdt_u_toolbar.htm @@ -83,7 +83,7 @@ Open Element - Brings up the Open Element selection dialog to open a type in the editor. + Brings up the Open Element selection dialog to open an element in the editor. The Open Elements selection dialog shows all elements existing in the workspace. @@ -106,15 +106,20 @@ Modify working set Modify workbench working set. + + + Toggle Mark Occurrences + Turns mark occurrences on and off in the C/C++ editor. + - Show Whitspace characters + Show Whitespace Characters Displays whitespace characters in the editor. Show Selected Element - Show source of Selected Element only + Show source of selected element only diff --git a/doc/org.eclipse.cdt.doc.user/topics_Reference.xml b/doc/org.eclipse.cdt.doc.user/topics_Reference.xml index e623682d393..cd70ed7d01e 100644 --- a/doc/org.eclipse.cdt.doc.user/topics_Reference.xml +++ b/doc/org.eclipse.cdt.doc.user/topics_Reference.xml @@ -69,6 +69,7 @@
+