Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarco Stornelli2019-03-30 03:45:57 -0400
committerJonah Graham2019-04-08 13:49:15 -0400
commite93ea0ab70b2e487ef55e5886ccac9dd93bce84b (patch)
treed3304d8462993f50df04d28d9ee03bca420ed59d /core
parente753c628ed910a7729a3c8cd43c84ff707cf7b63 (diff)
downloadorg.eclipse.cdt-e93ea0ab70b2e487ef55e5886ccac9dd93bce84b.tar.gz
org.eclipse.cdt-e93ea0ab70b2e487ef55e5886ccac9dd93bce84b.tar.xz
org.eclipse.cdt-e93ea0ab70b2e487ef55e5886ccac9dd93bce84b.zip
Bug 468206 - Fix color for search matching
We used color keys not saved in the preferences and without any UI widget. The user wasn't able to change them. Change-Id: I48bc4e411d2bc016501613b7dbfb0e7f95532099 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/plugin.properties3
-rw-r--r--core/org.eclipse.cdt.ui/plugin.xml20
2 files changed, 18 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.ui/plugin.properties b/core/org.eclipse.cdt.ui/plugin.properties
index b73f5c4128..457ea7d805 100644
--- a/core/org.eclipse.cdt.ui/plugin.properties
+++ b/core/org.eclipse.cdt.ui/plugin.properties
@@ -263,6 +263,8 @@ ParentNameSorter.label= &Parent Name
ParentNameSorter.tooltip= Sort the view by C Element Parent Name
PathNameSorter.label= P&ath
PathNameSorter.tooltip= Sort the view by Resource Path
+CSearch.color.match_highlight= Match background highlight
+CSearch.color.match_write_highlight= Write match background highlight
# Action sets
CSearchActionSet.label= C/C++ Search
@@ -608,6 +610,7 @@ preferenceKeywords.templates=editor templates snippet macros
preferenceKeywords.folding=editor folding section comment header function method statement preprocessor
preferenceKeywords.markoccurrences=editor occurrence mark highlight
preferenceKeywords.smarttyping=editor typing type close comment tabs indentation indent imports wrap escape semicolons braces brackets parenthesis parentheses strings literals paste pasting tabulator automatically
+preferenceKeywords.colored_labels=search colors highlight matching
historyAction.label = History...
diff --git a/core/org.eclipse.cdt.ui/plugin.xml b/core/org.eclipse.cdt.ui/plugin.xml
index b112960448..5f6a8f0e28 100644
--- a/core/org.eclipse.cdt.ui/plugin.xml
+++ b/core/org.eclipse.cdt.ui/plugin.xml
@@ -627,14 +627,16 @@
</colorDefinition>
<colorDefinition
id="org.eclipse.cdt.ui.ColoredLabels.match_highlight"
- isEditable="false"
- label="%Dummy.label"
+ categoryId="org.eclipse.cdt.ui.presentation"
+ isEditable="true"
+ label="%CSearch.color.match_highlight"
value="206, 204, 247">
</colorDefinition>
<colorDefinition
id="org.eclipse.cdt.ui.ColoredLabels.writeaccess_highlight"
- isEditable="false"
- label="%Dummy.label"
+ categoryId="org.eclipse.cdt.ui.presentation"
+ isEditable="true"
+ label="%CSearch.color.match_write_highlight"
value="240, 216, 168">
</colorDefinition>
<colorDefinition
@@ -1386,7 +1388,15 @@
<keyword
label="%preferenceKeywords.indexer"
id="org.eclipse.cdt.ui.indexer"/>
- </extension>
+ <keyword
+ label="%preferenceKeywords.colored_labels"
+ id="org.eclipse.cdt.ui.ColoredLabels.match_highlight">
+ </keyword>
+ <keyword
+ label="%preferenceKeywords.colored_labels"
+ id="org.eclipse.cdt.ui.ColoredLabels.writeaccess_highlight">
+ </keyword>
+ </extension>
<extension
point="org.eclipse.ui.menus">

Back to the top