X

Geertjan's Blog

  • January 20, 2016

org.netbeans.spi.project.ui.CustomizerProvider2

Geertjan Wielenga
Product Manager

How to open the Project Properties dialog for a project, at a specific tab:

@Override
public Action getPreferredAction() {
return new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
project.getLookup().lookup(CustomizerProvider2.class).showCustomizer("tabName", "subTabName");
}
};
}

Join the discussion

Comments ( 2 )
  • Tomas Mysik Friday, January 22, 2016

    Not true exactly, there is a mistake in this API, the preselectedSubCategory parameter is not used. See its Javadoc:

    /**

    * Show customizer and preselect a category or subcategory.

    * @param preselectedCategory <b>category or subcategory</b> to be selected

    * @param preselectedSubCategory <b>not used</b>

    */


  • Geertjan Friday, January 22, 2016

    Thanks!


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.