[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] JP Matching report?
|
- From: Reginaldo Ré <reginaldo.re@xxxxxxxxx>
- Date: Mon, 16 Feb 2009 10:03:59 -0300
- 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 :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=VRAfFNrGfR4EtEULkC/lt8ynqO1Eh5HFfuEttLV555c=; b=lsNlaX3d9WiVfeWjdISKBZxIPqOTP8gE19yu4vdtzjr9sw9PqRRYem6WyQHHETgBdb UsK3AbOHtVqNs68Ej8EzNLrJF8i9fBXizvH8vJAX9avVvNIJ0iKLGDkJ0heRyDD0bICr G6Z7Y3Fid3s44hzyAgQC0VGbSL8gSyavcSpkI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=JuLX5LkSbXQwQSJPpBY+rVqE7Vmo1qRVnpxthn5c/Hx3dBb2GqzUXojNgU70GzCWly +q2kKROiOwahbj/1jpe0ATjl+FlzeHITaHsw9CSMSKm9Hk2V4WVSgLS1Pny4szEOWE33 tLKGzkcTD24gqh9cMXO2SLX+dEOleAUOQa76c=
- User-agent: Thunderbird 1.5.0.14ubu (X11/20090105)
Essa pg foi atualizada:
http://wiki.eclipse.org/Developer%27s_guide_to_building_tools_on_top_of_AJDT_and_AspectJ
Johan Fabry escreveu:
> 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
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>