-
In the Project tool window, do one of the following:
- Select the source directory or package in which you want to create a new aspect, and choose File | New.
- Select the source directory or package, and press Alt+InsertCommand N; Command Enter.
- Right-click the source directory or package to open the context menu, and select New.
- Select Aspect.
-
In the dialog that opens:
- Specify the name of the aspect in the Name field.
-
Select one of the following options from the Kind list:
- Aspect to create a .aj file with the specified name.
- @Aspect to create a .java file containing a class annotated with @Aspect.
- Click OK.

