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
2
votes
0 answers

AspectJ - NullPointerException when building and compiling project

Edit: I fixed this by starting an entirely new workspace and creating new projects. Everything compiles and builds now. I can't answer my own questions yet, so I'll just put this here! I'm not deleting this post since it might be useful to…
user1361683
1
vote
3 answers

Spring Data Graph and Eclipse

Spent 2 days trying to understand how to enable Eclipse work with Spring Data Graph, have no idea yet. The code is like this: @NodeEntity public class Person { public Person() { } } ... public class App { public static void…
Andrey Agibalov
  • 7,624
  • 8
  • 66
  • 111
1
vote
1 answer

How to reflect modified abstract syntax tree in JDT back to original java source file.?

Kindly refer "write it down" section of article http://www.eclipse.org/articles/article.php?file=Article-javaCodeManipulation_AST/index.html I am parsing a java source code file which has method with contracts written using cofoja. Now when I create…
sagar
  • 19
  • 2
1
vote
1 answer

Compiling errors occur while convert a project to AspectJ project with AspectJ eclipse 3.4 plugin, ajdt2.0.1

Hey, I wanna to add AOP to my web project. I download ajdt2.0.1 for eclipse 3.4.1. But when I convert this project to AspectJ projects, I got so many compile errors which shouldn't occur. Such as "XXXDAO cannot be resolved", etc. When I remove…
xiaowl
  • 5,177
  • 3
  • 27
  • 28
1
vote
2 answers

Content assist on pointcut definition using Eclipse and AspectJ (AJDT)

I was wondering if there is a way to activate the auto completion on the primitive pointcut definition in eclipse. It is very annoying to write the full qualified name of a class method by hand.
Jack
  • 1,066
  • 2
  • 10
  • 22
1
vote
1 answer

Ctrl+click doesn't work after converting to AspectJ Project

After I enabled AspectJ nature in my SpringBoot project the CTRL + click shortcut doesn't work. When I try to use F3 I get error: CTRL + click or F3 works only on class field names (can't click class field type) or constructors. Problem is solved…
Iwo Kucharski
  • 3,735
  • 3
  • 50
  • 66
1
vote
2 answers

How to script the "Convert to AspectJ" action when creating a new Eclipse project?

I have a command line script that creates a (mostly) ready-to-go Eclipse project for me. It uses Maven's eclipse plugin, and has some other scripted steps such as copying our code standard settings from our repo into .settings. This is very handy,…
dirtyvagabond
  • 1,881
  • 2
  • 19
  • 23
1
vote
1 answer

AspectJ and Map Array

I am using AJDT 2.2.4 which is build on AspectJ 1.81. Consider this simple aspect: @Aspect public class SampleAspect { @Before("@annotation(logMe)") public void beforeAdvice(JoinPoint joinPoint, LogMe logMe) { …
Alireza Fattahi
  • 42,517
  • 14
  • 123
  • 173
1
vote
1 answer

How to format AspectJ *.aj files with eclipse

Am I missing something or is it currently not possible to format AspectJ (*.aj) with eclipse built-in formatter? I'm using eclipse kepler with AJDT-plugin and the formater doesn't do anything with those files. Currently I'm formatting…
Turbokiwi
  • 1,288
  • 10
  • 15
1
vote
1 answer

AspectJ causing "Editor does not contain a main type" error

After installing the AspectJ Development Tools into Eclipse, the "Run" button and the Ctrl-F11 shortcut both become nearly useless: using them (or the Debug button) will throw an "Editor does not contain a main type" error message, even for projects…
therealdm
  • 91
  • 1
  • 6
1
vote
1 answer

AspectJ pointcut to method call (even if it's called on external libraries)

I'm having some difficulties using AJDT. One of the things I would like to have it's a record of every method called on a given type, for instance, LinkedList. What I observed it's that using the pointcut below, I can just intersect method calls to…
rnunes
  • 2,785
  • 7
  • 28
  • 56
1
vote
1 answer

AJDT Advice Marker Configuration for Maven Defined Aspects

Currently, I have a Maven project which inherits from a parent pom defining two aspect jars. The advice markers are displayed for both aspect jars via the m2eclipse AJDT integration. However, in this case, I only want advice markers displayed for…
Kingamajick
  • 2,281
  • 1
  • 16
  • 19
0
votes
0 answers

AspectJ LTW with "second" aop.xml file

I recently started using AspectJ LTW. I use Eclipse with the AJDT. I basically use the "outjar" option to create my "AspectJ Library (.jar file)" with the compiled .aj files. Next step is to use this jar file within a "normal" Eclipse Java project…
Domi
  • 1,451
  • 2
  • 13
  • 25
0
votes
1 answer

Remove AspectJ Content Assist suggestions after plugin uninstall

I would like to delete AJDT completions from CTRL+Space menu. I had AspectJ Tools installed, but I removed the plugin, but the suggestions remain.
P Varga
  • 19,174
  • 12
  • 70
  • 108
0
votes
1 answer

Using AspectJ/AJDT in RAD 7.5.5

I'm using RAD 7.5.5. I installed AJDT plugin from the download site: http://archive.eclipse.org/tools/ajdt/34/update/ I converted one of the existing Java projects to an AspectJ project, added an aspect to print log statements on method start and…
Anand Jayabalan
  • 12,294
  • 5
  • 41
  • 52