Creating package filters
If you have a lot of packages in mounted in the IDE, you may want to create custom package filters in the Package pane of the Object Browser to define which of them you want to view.
To create a new package filter:
- Make sure that the Show as tree icon is not selected.
- Click the ... button in the upper right corner of the Packages pane to bring up the Package Filter dialog box.
- In the Package Filter dialog box, click New.
- Now a Change Filter Name dialog box will appear. Enter a name for the new filter and click OK.
Next you will need to enter the specifications for your filter. In the details panel of the Package Filter dialog box is a list of filter expressions. By default, the expression
com.*
is created for all new filters.There are two ways to create a filter:
- Using the wildcard option, you can enter prefix (for example,
com.netbeans*
), suffix (for example,*debugger
), or infix (for example,*debugger*
) expressions to narrow down the number of displayed packages.- Using the regular expression option, you can create more complex filters using regular expressions (in standard POSIX format).
![]()
To add an expression to a filter:
- Select the filter and click Add.
- Click the radio button for wildcard or regular expression and type the expression in that field.
- Click Change.
To change an expression in a filter:
- Select the filter in the list of filters in the Package Filter dialog box and select the expression to be changed in the Details list (for example,
com.*
).- Continue with steps 2 and 3 of the add filter procedure.
Other buttons
Contents | Prev | Next | Index |