DevFaqExtendOptionsSearch

Contents

How can configure my options panel to be found by global quicksearch or options search?

Quicksearch

Use the keywords attribute of the @OptionsPanelController.SubRegistration/@OptionsPanelController.TopLevelRegistration


For example

@OptionsPanelController.SubRegistration(
        id = "XXX",
        location = "Java",
        displayName = "#AdvancedOption_DisplayName_MYPLUGIN",
        keywords = "#AdvancedOption_Keywords_MYPLUGIN",
        keywordsCategory = "Java/MYPLUGIN")
@org.openide.util.NbBundle.Messages({"AdvancedOption_DisplayName_MYPLUGIN=MYPLUGIN", "AdvancedOption_Keywords_MYPLUGIN=keyword1,keyword2"})
public final class MYPLUGINOptionsPanelController extends OptionsPanelController

Options search

Use the keywords attribute of the @OptionsPanelController.Keywords. Place the annotation at the OptionPanel and NOT at the OptionsPanelController.

For example

@org.netbeans.spi.options.OptionsPanelController.Keywords(location="Java", tabTitle="XXX", keywords={"configures format","highlighting","much more"})
public class MYPLUGINOPTIONSPanel extends javax.swing.JPanel

Further resources

[1] http://bits.netbeans.org/8.0/javadoc/org-netbeans-modules-options-api/org/netbeans/spi/options/OptionsPanelController.SubRegistration.html

[2] http://bits.netbeans.org/8.0/javadoc/org-netbeans-modules-options-api/org/netbeans/spi/options/OptionsPanelController.TopLevelRegistration.html

[3] http://bits.netbeans.org/8.0/javadoc/org-netbeans-modules-options-api/org/netbeans/spi/options/OptionsPanelController.Keywords.html

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo