[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] JP Matching report?
|
- From: "Andrew Eisenberg" <andrew@xxxxxxxxxxxx>
- Date: Fri, 16 Jan 2009 08:13:30 -0800
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=tsY7JkA/2lJPiFWV9i0fUyKaelHkr9B13EgRdtd4l3Q=; b=E3NTOa8qwib/itMSsFGGgj7dkRH47MBIv37pM2pbEAePAo/lO6rRmXaac8W4rkfWKi tHRdcs380xm573KJaB0rpOn9ja259ZXw29LNbGcG5hOKQPi5CeFFoDTCYRt5TFCa7Fru KT9285aShAD6tTNDRpWiuWNGxeMlQuZ7F+YeI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references:x-google-sender-auth; b=aaAlOPY5+Ug+/whvKu9J3IJ7wrUieWw7Q2UA8BJsLDejQl21x0Sdhs/oVJNcUm7l8n QYKf+9C8hRYNFDhI+Z8GUJSfcJfv6vteAwQrAW63wgvSdC5ioOm8PeM4no5h9fKGd52d xfx7G1cpjJQsaJXb4NqzBQoPn8hu1Mz5PyO2Q=
What version of AJDT are you using? Both AJRelationship and AJModel
have been deprecated since AJDT 1.6.1. The API that you are using now
looks like it is from before since AJModel.getModelForProject(project)
has been removed.
I recommend that you upgrade to the lates AJDT 1.6.2 or a.6.3 dev release.
On Fri, Jan 16, 2009 at 6:46 AM, Johan Fabry <jfabry@xxxxxxxxxxxxx> wrote:
> 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
>
>
>
>