Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » product catalog occurrenceIndicationColor
product catalog occurrenceIndicationColor [message #1795578] Tue, 25 September 2018 13:26 Go to next message
Marcus W is currently offline Marcus WFriend
Messages: 5
Registered: September 2018
Junior Member
product setup file problem

/instance/org.eclipse.ui.editors/lineNumberRuler is set
but
/instance/org.eclipse.ui.editors/occurrenceIndicationColor is not set

why????

- Where is my posting ???
- I cannot paste the product .setup file here.
Re: product catalog occurrenceIndicationColor [message #1795696 is a reply to message #1795578] Thu, 27 September 2018 03:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30452
Registered: July 2009
Senior Member
Marcus, how did you create the preference task?

The easiest way to create a preference task is to use the Record Preferences toolbar button while editing your *.setup. But I'm not sure where you find this specific preference, occurrenceIndicationColor , in the dialog. A related one for JDT's write access occurrences would look like this:
<?xml version="1.0" encoding="UTF-8"?>
<setup:CompoundTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="org.eclipse.ui.workbench">
  <setupTask
      xsi:type="setup:PreferenceTask"
      key="/instance/org.eclipse.ui.workbench/org.eclipse.jdt.ui.ColoredLabels.writeaccess_highlight"
      value="237,208,150"/>
</setup:CompoundTask>


Yes, documentation could be improved, but more often than not, people don't read it anyway, even if its presented to them directly in the IDE's help...
Re: product catalog occurrenceIndicationColor [message #1796057 is a reply to message #1795696] Thu, 04 October 2018 14:20 Go to previous messageGo to next message
Marcus W is currently offline Marcus WFriend
Messages: 5
Registered: September 2018
Junior Member
Answer to "Where to find?":

please see my other posting https://www.eclipse.org/forums/index.php/t/1095320/

General > Editors > Text Editors > Annotations > Occurrences
oder "Write Occurrences"

Answer to "How looks my file?":

please look at the file in my 1st posting in this thread

Your example does work.
/instance/org.eclipse.ui.editors/occurrenceIndicationColor
and
/instance/org.eclipse.ui.editors/writeOccurrenceIndicationColor
do not work

What can I do? Are only these settings buggy or is Oomph not production-ready?
Re: product catalog occurrenceIndicationColor [message #1796068 is a reply to message #1796057] Thu, 04 October 2018 16:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30452
Registered: July 2009
Senior Member
By "Where to find?" I mean where in the preferences dialog do I change this preference value? I couldn't find it. I assume you are creating your task by recording the changes you make to this value. The one that I could find in the dialogs did work when I recorded it...

If I capture that preference value as a task, just like the one you showed, and I perform it, I can see that the value has changed in the preference tree. Oomph has a utility for inspecting the contents of the preferences tree if you install the feature org.eclipse.oomph.preferences; then you can use Window -> Preferences -> Oomph -> All Preferences and use the Edit... button to inspect all preferences (including secure storage). But trying your example, and using the "Capture Preferences" toolbar button in the Setup Editor, I can see that after performing the task with a modified RBG value in the preference task, that this preference value is present in the preference tree afterwards. Perhaps whatever code is reading this preferences reads it only once, very early, so it doesn't see the new value (perhaps until you restart).
Re: product catalog occurrenceIndicationColor [message #1796194 is a reply to message #1796068] Mon, 08 October 2018 08:28 Go to previous messageGo to next message
Marcus W is currently offline Marcus WFriend
Messages: 5
Registered: September 2018
Junior Member
"Where to find":

as written above:
in Eclipse Oxygen.3A > Window > Preferences >
General > Editors > Text Editors > Annotations > list entry "Occurrences"
(could also be "Occurrences (...jdt...)")
or list entry "Write Occurrences"

see screenshot https://imgur.com/rXcWk15

(I search for "occ", click Java>Editor>Mark Occurrences and then the link 'Annotations'.
After selecting the list entry I can click on the color button to change the color.
Maybe Eclipse is buggy regarding this setting?)

Yes, I use the recorder. (in fact: My colleague has somehow provided the values.)



I have installed org.eclipse.oomph.preferences 1.10.0.v20180706-1242. I cannot
find the tree node "All Preferences" under "Window -> Preferences -> Oomph". There
are only these nodes: Bundle Pools, Dynamic Working Sets, Java Virutal Machines,
Remote Resources, Setup Tasks/Preference Recorder (do you mean this?) and Setup
Tasks/Preference Synchronizer. It does not appear after restarting Eclipse either.
Re: product catalog occurrenceIndicationColor [message #1796246 is a reply to message #1796194] Tue, 09 October 2018 05:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30452
Registered: July 2009
Senior Member
It's org.eclipse.oomph.preferences.feature.group is the IU of the feature to install...

I tested recording this in the Workspace setup:
<?xml version="1.0" encoding="UTF-8"?>
<setup:PreferenceTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    key="/instance/org.eclipse.ui.editors/occurrenceIndicationColor"
    value="255,255,0"/>
Changing the value in the setup and and performing that task had an immediate effect of changing the color in the already-open Java editor and in the color the preferences dialog shows.

So it's not clear why that works for me and not for you.

Re: product catalog occurrenceIndicationColor [message #1796306 is a reply to message #1796246] Wed, 10 October 2018 07:16 Go to previous messageGo to next message
Marcus W is currently offline Marcus WFriend
Messages: 5
Registered: September 2018
Junior Member
I'm not able to load "org.eclipse.oomph.preferences.feature.group". What is the update site URL?

It's good to know that the setting works. What Eclipse version did you use? (Oxygen.3a?)
Re: product catalog occurrenceIndicationColor [message #1796321 is a reply to message #1796306] Wed, 10 October 2018 14:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30452
Registered: July 2009
Senior Member
It's in every release train repository, grouped a General Tools -> Oomph Preferences Management. I used Eclipse 2018-09.
Previous Topic:Eclipse Installer Truncating Default Catalog Entries?
Next Topic:project sources are not imported
Goto Forum:
  


Current Time: Fri Sep 20 03:26:22 GMT 2019

Powered by FUDForum. Page generated in 0.01878 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top