Bug 517536

Summary: Contribute keywords to other plug-ins' preference pages
Product: [Eclipse Project] Platform Reporter: Carsten Reckord <reckord>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: bsd, gautier.desaintmartinlacaze, Lars.Vogel
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Carsten Reckord CLA 2017-05-31 08:51:47 EDT
Preference pages can declare keywords for filtering/search using the org.eclipse.ui.keywords extension point and associating them with the page using the <keywordReference> element of the org.eclipse.ui.preferencePages extension point. Currently, this is only possible within the extension definition of the contributed page itself. However, several pages contain contributions from various plug-ins, and it would be good for those plug-ins to add their own keywords to the page. 

As an example, see bug 502043, where we would have liked to add the "marketplace" keyword to the "File Associations" page, so that users looking for a way to change the "unassociated file types" behavior from the current "Search Marketplace" default can find it more easily.
Comment 1 Carsten Reckord CLA 2017-05-31 08:56:48 EDT
I'd be happy to work on a contribution if this is a viable suggestion.
Comment 2 Brian de Alwis CLA 2017-05-31 09:27:34 EDT
Sounds reasonable.  What do you see the extension contribution would look like?
Comment 3 Lars Vogel CLA 2017-05-31 09:28:44 EDT
I thought this works already?
Comment 4 Brian de Alwis CLA 2017-05-31 10:07:16 EDT
Carsten is asking to be able to do something like:

   <extension point="org.eclipse.ui.preferencePages"> 
      <reference page="com.xyz.prefpage1" keyword="xyz.Keyword" />
   </extension> 

to add a new keyword reference to a prefpane defined elsewhere.

If this ability is already available, it's not documented in the .preferencePages extension point.