Eclipse has a search field in the preferences list. This is defined not from the UI but from a separate keyword
extension instead. The keyword
has an id
and a label
. The label
is a space-separated list of words that can be used in the filtering dialog.
To add the
offset
andtimezone
keywords toClockPreferencePage
, create a new extension point inplugin.xml
fororg.eclipse.ui.keywords
:<extension point="org.eclipse.ui.keywords"> <keyword id="com.packtpub.e4.clock.ui.keywords"label="offset timezone"/> </extension>
Now associate these keywords with the preference page itself:
<extension point="org.eclipse.ui.preferencePages"> <page name="Clock" ... ><keywordReference id="com.packtpub.e4.clock.ui.keywords"/> </page> </extension>
Run the target Eclipse instance, go to the Preferences page, and type
timezone
oroffset
in the search box. The Clock preference page should be shown in both cases: