Questions tagged [ajdt]

AJDT stands for AspectJ Development Tools, an Eclipse plug-in for Aspect Oriented Software Development in Java.

The AspectJ Development Tools (AJDT) provide support for aspect oriented software development (AOSD) in Java. Aspects are implemented with AspectJ, a Java language extension.

54 questions
19
votes
6 answers

Maven/AJDT project in Eclipse

I need to use aspectj in a maven project. I installed the maven plugin for eclipse (m2e), the maven aspectj plugin, and also AJDT for Eclipse. So now, when i open a new project i have "Maven Project" and "AspectJ Project". how can i make a new…
Magen
  • 191
  • 1
  • 1
  • 3
8
votes
5 answers

Installing AJDT I got a Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor

After I install the AJDT 2.2.3 on Rational Software Archtect, every Editor displays the error: Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor I am using the Rational Software…
user1274399
  • 115
  • 1
  • 3
  • 7
6
votes
2 answers

Why I got "advice has not been applied" warning?

Why does the following code: pointcut callsToList() : call(* List.*(..)); before(List l) : callsToList() && target(l) { System.out.println("cool"); } generates the following warning: advice defined in org.eclipse.ajdt.examples.ListAdvice …
Manuel Selva
  • 18,554
  • 22
  • 89
  • 134
6
votes
2 answers

AspectJ: How to get pointcuts to advise classes located in other projects

This should be simple. Question How do you get a pointcut in one project to advise the code/classes within another project? Context I'm working in eclipse with two projects. For ease of explanation, let's call one science project and the other…
gMale
  • 17,147
  • 17
  • 91
  • 116
5
votes
1 answer

How use AspectJ in Eclipse plugins

As mentioned in a previous question I am trying to check that all my ResultSet are closed. For that I want to use AspcetJ but after 1 day of hard fight I am not able to use aspects in a plugin context. What I want is to have an aspect project…
Manuel Selva
  • 18,554
  • 22
  • 89
  • 134
4
votes
2 answers

How to send variables to an Aspect, in Java?

I was wondering if there is a way to get a variable from the main function and use it in the aspect. I know before() and after() advices will execute before and after methodeOne but how can they get VAR1 and/or VAR2? public class AOPdemo { …
Valkie
  • 41
  • 4
4
votes
1 answer

Can't create Run/Debug configuration for AspectJ project in Eclipse

I have a problem, that I can't properly run/debug my AspectJ project in Eclipse. My Launching settings are set to "Execute resource, or if not possible execute project". This is what I want and need, don't advice me to change it please. My Problem…
th3falc0n
  • 1,389
  • 1
  • 12
  • 33
4
votes
2 answers

Autocompletion in Eclipse for Roo project

I've got a Roo project where I've made a couple of entities, and when I load up the project in Eclipse it loads up fine, but if I i.e. make an instance MyEntity entity and then write entity. I don't get any of my properties (i.e. getMyField) in the…
niklassaers
  • 8,480
  • 20
  • 99
  • 146
4
votes
3 answers

How to get Scala plugin and AJDT to be installed in same Eclipse

I get an error when trying to install both AJDT and Scala 2.7.5 plugin into Eclipse 3.5. I remember seeing a message at one point that there was a known problem with the two being installed, and the solution was to install a pre-release version of…
James Black
  • 41,583
  • 10
  • 86
  • 166
3
votes
1 answer

Error when opening .aj file in STS 4 (Eclipse 4.21.0)

UPDATE 11/15/2021 Also looks like this may have already been reported, and the fix simply not released yet. https://bugs.eclipse.org/bugs/show_bug.cgi?id=575897 A workaround would still be appreciated if anyone has one. I can edit the files in a…
DavidA
  • 3,984
  • 5
  • 25
  • 38
3
votes
1 answer

aspectj for Android studio - where is AJDT plugin

How do i install AJDT for android studio. I know there is one for eclipse but i cant find anything in android studio. What i would like to do is run security checks on every one of my method calls before they launch. I've tried from this site AJDT…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
2
votes
1 answer

Get class name and method parameters in the aspect

I am working on a project that is basically a lot of processes that run periodically. Each process is a different class that extends an abstract class RunnableProcess we created, which contains the abstract method run with the signature…
Leonardo Alves Machado
  • 2,747
  • 10
  • 38
  • 53
2
votes
1 answer

m2eclipse .classpath generation with AJDT

I am using m2eclipse 0.10.2 and eclipse helios/ajdt. I remember that m2eclipse is managing the inpath for eclipse configuration (at least in eclipse galileo) right now, it doesn't manage it for me any more and I don't know why. This is my plugin…
Janning Vygen
  • 8,877
  • 9
  • 71
  • 102
2
votes
1 answer

Eclipse: Compile AspectJ class with Java classes

How would I compile .aj class in my Eclipse Web Project? I already have AspectJ Development Tools installed in Eclipse Juno. But it didn't make any difference. Using Tomcat 6 server to deploy application. Note: I have some groovy classes too which I…
Himanshu Yadav
  • 13,315
  • 46
  • 162
  • 291
2
votes
1 answer

Cannot create and save .aj files in eclipse with AJDT plugin

recently I started learning the wonders of AspectJ (http://www.eclipse.org/aspectj/doc/released/faq.php) and decided to use it on a program. To start I downloaded the lates stable version of aspectJ…
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
1
2 3 4