Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » how to compare pointcuts
how to compare pointcuts [message #65056] Mon, 22 May 2006 05:31 Go to next message
Jimisola Laursen is currently offline Jimisola Laursen
Messages: 134
Registered: July 2009
Senior Member
Hi!

Wondering if there is a way to compare to different pointcuts using AJDT.
I am not looking for a graphical compare such as the crosscutting
comparison,
rather a compare such as the cross reference comparison.

Since I am a AspectJ/AJDT newbie what am I asking for might already exist in
AJDT but I can't find it.

If it does not exist, is it because it is not possible? Is an advice needed
perhaps?

Regards,
Jimisola
Re: how to compare pointcuts [message #65148 is a reply to message #65056] Tue, 23 May 2006 12:35 Go to previous messageGo to next message
Matt Chapman is currently offline Matt Chapman
Messages: 429
Registered: July 2009
Senior Member
Jimisola Laursen wrote:
> Hi!
>
> Wondering if there is a way to compare to different pointcuts using AJDT.
> I am not looking for a graphical compare such as the crosscutting
> comparison,
> rather a compare such as the cross reference comparison.
>
> Since I am a AspectJ/AJDT newbie what am I asking for might already exist in
> AJDT but I can't find it.
>
> If it does not exist, is it because it is not possible? Is an advice needed
> perhaps?

Hi Jimisola,

Yes, simply write some empty advice using the pointcut, and then you can
use the cross references view to see the matches.

A pointcut doesn't do anything on its own, advice is needed to have an
effect, so therefore it is more useful to show the matches (or potential
matches in the case of runtime tests) against the advice rather than the
pointcuts.

Regards,

Matt.
Re: how to compare pointcuts [message #65170 is a reply to message #65148] Tue, 23 May 2006 12:48 Go to previous messageGo to next message
Jimisola Laursen is currently offline Jimisola Laursen
Messages: 134
Registered: July 2009
Senior Member
Hi!

Thanks for the reply.

Well, cross references view worked like that I expected then.

However, even if it is more useful to show the matches (or potential
matches) against the advice rather than the pointcut I don't see why one
shouldn't be able to compare pointcuts if it is doable since it saves me as
a developer time. It's not mutual exclusive,so why don't have the best of
both worlds?

Regards,
Jimisola

"Matt Chapman" <mpchapman@gmail.com> wrote in message
news:e4vdkl$u2j$1@utils.eclipse.org...
> Jimisola Laursen wrote:
>> Hi!
>>
>> Wondering if there is a way to compare to different pointcuts using
>> AJDT.
>> I am not looking for a graphical compare such as the crosscutting
>> comparison,
>> rather a compare such as the cross reference comparison.
>>
>> Since I am a AspectJ/AJDT newbie what am I asking for might already exist
>> in AJDT but I can't find it.
>>
>> If it does not exist, is it because it is not possible? Is an advice
>> needed perhaps?
>
> Hi Jimisola,
>
> Yes, simply write some empty advice using the pointcut, and then you can
> use the cross references view to see the matches.
>
> A pointcut doesn't do anything on its own, advice is needed to have an
> effect, so therefore it is more useful to show the matches (or potential
> matches in the case of runtime tests) against the advice rather than the
> pointcuts.
>
> Regards,
>
> Matt.
Re: how to compare pointcuts [message #65192 is a reply to message #65170] Tue, 23 May 2006 14:06 Go to previous messageGo to next message
Matt Chapman is currently offline Matt Chapman
Messages: 429
Registered: July 2009
Senior Member
Jimisola Laursen wrote:
> Well, cross references view worked like that I expected then.
>
> However, even if it is more useful to show the matches (or potential
> matches) against the advice rather than the pointcut I don't see why one
> shouldn't be able to compare pointcuts if it is doable since it saves me as
> a developer time. It's not mutual exclusive,so why don't have the best of
> both worlds?

We're all for saving developers' time - it's just a matter of doing it
in such a way so as to not confuse or mislead other developers. How
about if you could select two pointcuts in the outline view or package
explorer and compare them with the crosscutting comparison view?

There has been discussion about having a separate "pointcut matcher"
tool to assist with writing pointcuts - see enhancement 109759 in bugzilla.

Regards,

Matt.
Re: how to compare pointcuts [message #65276 is a reply to message #65192] Wed, 24 May 2006 08:04 Go to previous message
Jimisola Laursen is currently offline Jimisola Laursen
Messages: 134
Registered: July 2009
Senior Member
"Matt Chapman" <mpchapman@gmail.com> wrote in message
news:e4viv5$617$1@utils.eclipse.org...
> Jimisola Laursen wrote:
>> Well, cross references view worked like that I expected then.
>>
>> However, even if it is more useful to show the matches (or potential
>> matches) against the advice rather than the pointcut I don't see why one
>> shouldn't be able to compare pointcuts if it is doable since it saves me
>> as a developer time. It's not mutual exclusive,so why don't have the best
>> of both worlds?
>
> We're all for saving developers' time - it's just a matter of doing it in
> such a way so as to not confuse or mislead other developers. How about if
> you could select two pointcuts in the outline view or package explorer and
> compare them with the crosscutting comparison view?

That would be very nice. Actually, just the behaviour/functionality that I
expected.
I believe that this is the same way that one compares advices
(http://www.eclipse.org/ajdt/newfeatures/ "Additional Crosscutting
Comparison functionality ") - correct?

> There has been discussion about having a separate "pointcut matcher" tool
> to assist with writing pointcuts - see enhancement 109759 in bugzilla.

Looks as if it would be a great helper when writing point cuts.

Regards,
Jimisola
Re: how to compare pointcuts [message #593807 is a reply to message #65056] Tue, 23 May 2006 12:35 Go to previous message
Matt Chapman is currently offline Matt Chapman
Messages: 429
Registered: July 2009
Senior Member
Jimisola Laursen wrote:
> Hi!
>
> Wondering if there is a way to compare to different pointcuts using AJDT.
> I am not looking for a graphical compare such as the crosscutting
> comparison,
> rather a compare such as the cross reference comparison.
>
> Since I am a AspectJ/AJDT newbie what am I asking for might already exist in
> AJDT but I can't find it.
>
> If it does not exist, is it because it is not possible? Is an advice needed
> perhaps?

Hi Jimisola,

Yes, simply write some empty advice using the pointcut, and then you can
use the cross references view to see the matches.

A pointcut doesn't do anything on its own, advice is needed to have an
effect, so therefore it is more useful to show the matches (or potential
matches in the case of runtime tests) against the advice rather than the
pointcuts.

Regards,

Matt.
Re: how to compare pointcuts [message #593816 is a reply to message #65148] Tue, 23 May 2006 12:48 Go to previous message
Jimisola Laursen is currently offline Jimisola Laursen
Messages: 134
Registered: July 2009
Senior Member
Hi!

Thanks for the reply.

Well, cross references view worked like that I expected then.

However, even if it is more useful to show the matches (or potential
matches) against the advice rather than the pointcut I don't see why one
shouldn't be able to compare pointcuts if it is doable since it saves me as
a developer time. It's not mutual exclusive,so why don't have the best of
both worlds?

Regards,
Jimisola

"Matt Chapman" <mpchapman@gmail.com> wrote in message
news:e4vdkl$u2j$1@utils.eclipse.org...
> Jimisola Laursen wrote:
>> Hi!
>>
>> Wondering if there is a way to compare to different pointcuts using
>> AJDT.
>> I am not looking for a graphical compare such as the crosscutting
>> comparison,
>> rather a compare such as the cross reference comparison.
>>
>> Since I am a AspectJ/AJDT newbie what am I asking for might already exist
>> in AJDT but I can't find it.
>>
>> If it does not exist, is it because it is not possible? Is an advice
>> needed perhaps?
>
> Hi Jimisola,
>
> Yes, simply write some empty advice using the pointcut, and then you can
> use the cross references view to see the matches.
>
> A pointcut doesn't do anything on its own, advice is needed to have an
> effect, so therefore it is more useful to show the matches (or potential
> matches in the case of runtime tests) against the advice rather than the
> pointcuts.
>
> Regards,
>
> Matt.
Re: how to compare pointcuts [message #593825 is a reply to message #65170] Tue, 23 May 2006 14:06 Go to previous message
Matt Chapman is currently offline Matt Chapman
Messages: 429
Registered: July 2009
Senior Member
Jimisola Laursen wrote:
> Well, cross references view worked like that I expected then.
>
> However, even if it is more useful to show the matches (or potential
> matches) against the advice rather than the pointcut I don't see why one
> shouldn't be able to compare pointcuts if it is doable since it saves me as
> a developer time. It's not mutual exclusive,so why don't have the best of
> both worlds?

We're all for saving developers' time - it's just a matter of doing it
in such a way so as to not confuse or mislead other developers. How
about if you could select two pointcuts in the outline view or package
explorer and compare them with the crosscutting comparison view?

There has been discussion about having a separate "pointcut matcher"
tool to assist with writing pointcuts - see enhancement 109759 in bugzilla.

Regards,

Matt.
Re: how to compare pointcuts [message #593861 is a reply to message #65192] Wed, 24 May 2006 08:04 Go to previous message
Jimisola Laursen is currently offline Jimisola Laursen
Messages: 134
Registered: July 2009
Senior Member
"Matt Chapman" <mpchapman@gmail.com> wrote in message
news:e4viv5$617$1@utils.eclipse.org...
> Jimisola Laursen wrote:
>> Well, cross references view worked like that I expected then.
>>
>> However, even if it is more useful to show the matches (or potential
>> matches) against the advice rather than the pointcut I don't see why one
>> shouldn't be able to compare pointcuts if it is doable since it saves me
>> as a developer time. It's not mutual exclusive,so why don't have the best
>> of both worlds?
>
> We're all for saving developers' time - it's just a matter of doing it in
> such a way so as to not confuse or mislead other developers. How about if
> you could select two pointcuts in the outline view or package explorer and
> compare them with the crosscutting comparison view?

That would be very nice. Actually, just the behaviour/functionality that I
expected.
I believe that this is the same way that one compares advices
(http://www.eclipse.org/ajdt/newfeatures/ "Additional Crosscutting
Comparison functionality ") - correct?

> There has been discussion about having a separate "pointcut matcher" tool
> to assist with writing pointcuts - see enhancement 109759 in bugzilla.

Looks as if it would be a great helper when writing point cuts.

Regards,
Jimisola
Previous Topic:AJDT New Feature: Drag and drop aspects
Next Topic:percflow() error
Goto Forum:
  


Current Time: Sat Aug 30 00:41:33 EDT 2014

Powered by FUDForum. Page generated in 0.01847 seconds