blob: 13f1ed3846c2814dd19c06e2488f8eac08315959 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>
Converting a plug-in project to an AspectJ project
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
</head>
<body>
<h1>
Converting a plug-in project to an AspectJ project
</h1>
<p>
To convert a Java plug-in project to an AspectJ plug-in project right click on that project,
then select <strong>Convert to AspectJ Project</strong>. This will add the AspectJ nature to that
project and replace the Java builder with the AspectJ builder. It will also ask you
whether you want to add the AspectJ runtime plug-in, org.aspectj.runtime as a plug-in
dependency. You will need to select <strong>Yes</strong>, unless you either have
a dependency on the AJDE plug-in, or you know that you are not going to need the runtime.
</p>
<p>
To convert an AspectJ plug-in project back to a Java plug-in project right click on that project,
then select <strong>AspectJ Tools &gt; Remove AspectJ Nature</strong>. This will remove the AspectJ nature from that
project and replace the AspectJ builder with the Java builder. It will also ask you whether you
want to remove the AspectJ runtime plug-in dependency if you have one.
</p>
<p>
<img src="../images/ngrelc.gif" alt="Related concepts" border="0" height="27" width="159"> <br>
<a href="../concepts/projects.htm">AspectJ projects</a><br>
<a href="../concepts/builder.htm">AspectJ builder</a>
</p>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159"><br>
<a href="ajelements.htm">Creating AspectJ elements</a><br>
<a href="newajproject.htm">Creating a new AspectJ project</a><br>
<a href="convertjavaproject.htm">Converting a Java project to an AspectJ project</a><br>
<a href="newaspect.htm">Creating a new aspect</a>
</p>
</body>
</html>