[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] JP Matching report?
|
Hi, Andrew, all,
a short note that the code on the wiki for the adviceChanged() method
is out of date. As a first step towards my goal, I changed it to the
following, which seems to work OK for me. If this code is indeed
correct, you might want to update the wiki accordingly.
public void adviceChanged() {
AJModel model = AJModel.getInstance();
AJProjectModel pmodel = model.getModelForProject(project);
// You can narrow this to include on certain kinds of relationships
AJRelationshipType[] relsTypes =
AJRelationshipManager.getAllRelationshipTypes();
List<AJRelationship> rels = (List<AJRelationship>)
pmodel.getAllRelationships(relsTypes);
for (AJRelationship rel : rels) {
System.out.print(rel.getRelationship().getDisplayName()+" : ");
System.out.print(rel.getSource().toString()+"->");
System.out.println(rel.getTarget().toString());
}
}
On 13 Jan 2009, at 16:35, Johan Fabry wrote:
Hi, Andrew,
thanks for the link, it looks like an excellent place to start!
On 13 Jan 2009, at 15:36, Andrew Eisenberg wrote:
Hi Johan!
Well, you can get this information if you do a regular compile
through
AJDT. There is an API that you can use. See:
http://wiki.eclipse.org/Developer%27s_guide_to_building_tools_on_top_of_AJDT_and_AspectJ
This may not be exactly what you are looking for, but it might be a
start.
--
Johan Fabry
jfabry@xxxxxxxxxxxxx - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
--
Johan Fabry
jfabry@xxxxxxxxxxxxx - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile