Creating a new aspect

Use the New Aspect wizard to create a new aspect. There are a number of ways to open this wizard:

  1. Select the container where you want the new class to reside.
  2. Click the New Aspect button in the workbench toolbar.

or

  1. Select the container where you want the new class to reside.
  2. From the container's pop-up menu, select New > Aspect.

or

  1. Select the container where you want the new class to reside.
  2. From the drop-down menu on the New button in the workbench toolbar, select Aspect.

or

Click the New button in the workbench toolbar to open the New wizard. In the left pane, select AspectJ, and in the right pane, select Aspect.

or

Select the container where you want the new class to reside. Then, select from the menu bar File > New > Aspect.

Related concepts

AspectJ projects

Related tasks

Creating AspectJ elements
Creating AspectJ projects
Creating a top-level aspect
Creating a nested aspect