Getting Started > Creating and Managing Categories > Adding Categories
You add code to categories using filters.
1 From the main menu, select JProbe > Manage Categories.
2 Select the folder in which the category logically belongs and click New Category.
3 Enter a name in the Name field.
4 To add packages to this category, double-click the cell and enter the package name.
The package is displayed in the cell and the Action is set to Include.
5 To exclude some code from this category, enter the package, class, or method (no signature) in the cell. See the following subsection, Syntax for Filters. Set the Action to Exclude.
6 To add existing folders or categories to this category, select the folder or category and click the Include button.
7 Order is important. Filters lower in the table override filters defined higher in the table. If you need to rearrange the filters, click and hold the row button for the filter you want to move and drag it to its new location. Right-click a row button to insert or delete a row.
9 Repeat to create additional categories.
Filters are case-sensitive and blanks are not allowed. You can use an asterisk (*) as a wild card; it matches any character, including the package separator. If you specify the code in a shorthand or partial form, JProbe automatically changes it to canonical form. The change may not be exactly what you desire, so be sure to verify it. JProbe does not check to see whether the filter actually matches anything in your code. For example, if you make a typing error in your package name, nothing in your code will match the filter and so the filter is not applied.
The following table contains common syntax and describes how JProbe interprets it: