Java macros can have several categories

Last modified by Manuel Leduc on 2022/07/13 15:30

The java macros can have several categories. The deprecated setDefaultCategory is replaced by setDefaultCategories. For instance:

/**
* Create and initialize the descriptor of the macro.
*/
public ExampleMacro()
{

  super("Example", DESCRIPTION, ExampleMacroParameters.class);
  setDefaultCategories(java.util.Collections.singleton("Tutorial"));
}

Get Connected