Copyright © 2004 Eclipse.org. All Rights Reserved

# Getting Started with AJDT

AJDTv1.2.0 M1

Adrian Colyer, August 2003.

Sian January, updated June 2004, October 2004.

This document describes how to get started with the AspectJ Development Tools in Eclipse. AJDT provides a rich set of features for working with AspectJ programs inside Eclipse.

Go straight to the instructions…

### AJDT Highlights:

- Editor support with keyword highlighting, AspectJ code templates and many of the Java Editor's advanced features.

- Outline view showing structural members and crosscutting relationships (e.g. from an advice declaration to the places it advises).

- New AspectJ Project wizard, plus the ability to convert any existing Java or PDE project to work with AspectJ

- New Aspect wizard

- Simple AspectJ cheat sheet to help you get started

- Support for multiple build configurations within a project

- Context menu actions for easy inclusion and exclusion of source files and/or packages from build configurations

- Support for aspect libraries and binary weaving

- New option to show weaving messages in the problems view. Check the "Output weaving info messages.." option on the AspectJ project properties page to switch on.

- Powerful Visualiser that shows the crosscutting impact of your aspects

- Debugging support – step into and through advice and set breakpoints in aspects.

- Integrated, searchable help for AspectJ

- Includes the AspectJ 1.2 compiler

### Instructions for use:

- Installation (& update)
- Creating an AspectJ project
- Adding a class
- Adding an aspect plus navigating crosscutting relationships – the outline view and gutter annotations
- Running an AspectJ program
- Build configurations
- Controlling AspectJ project properties and compiler settings
- Debugging
- Using the Visualiser
- Turning on incremental compilation
- Common problems