Bug 109759 - create pointcut matcher tool
Summary: create pointcut matcher tool
Status: NEW
Alias: None
Product: AJDT
Classification: Tools
Component: Doc (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 242589
Blocks:
  Show dependency tree
 
Reported: 2005-09-16 11:37 EDT by Mik Kersten CLA
Modified: 2010-07-07 14:57 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mik Kersten CLA 2005-09-16 11:37:18 EDT
We had a prototype “join point probe” tool in pre-AJDT IDE support, and it would
let you put in a pointcut, then show you the matches.  But we never quite worked
out the UI (e.g. matches showed in new view, you had to fully qualify type
names).  Julie Waterhouse and I spent a bit more time discussion how this could
work for AJDT, and thought a good way of doing it would be to allow you to
create a .ajpage (similar to a .jpage file), then select any pointcut,
right-click, and hit “show matches” to temporarily show everything the probe
matched in the Cross References view (the content would stick if the view were
not in “link with editor mode”). 

Some user input is on this thread:
http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg04582.html
Comment 1 Mik Kersten CLA 2005-09-16 11:48:29 EDT
"Join point probe" is probably too wierd and unintuitive a name, and this tool
would be about showing pointcut matches, so I updated the description accordingly.
Comment 2 Mohan Radhakrishnan CLA 2005-11-03 04:36:58 EST
The following is a general requirement and not really technical.
This could be a simple console used to type my pointcut and the matches would 
show in another console or be printed to a text file. The idea is to make the 
adoption of AspectJ as simple as possible. This will help us use AspectJ with 
complex features like generics because I found that the biggest stumbling 
block is the new syntax. Moreover prototypes are very useful. I think that 
printing a set of matched joinpoints immediately would be more helpful than 
the visualizer.
Comment 3 Mik Kersten CLA 2005-11-03 11:00:24 EST
Thanks for hte use case Mohan.  I also see this as a good learning tool, but
note that it still requires you to know the most sophisticated parts of the
syntax: pointcuts.  It is feasible to imagine another tool that lets you make a
structured selection (e.g. several methods and fields) and infers the pointcut
for you.  I prototype this way back but it's pretty much a research problem.
Comment 4 Andrew Eisenberg CLA 2008-08-25 17:17:51 EDT
In order for an idea like this to really work, there is a requirement for quick matching of pointcuts.  Matching and weaving would need to be split in the weaver.

See Bug 242589
Comment 5 Andrew Eisenberg CLA 2010-04-28 19:20:51 EDT
No longer slated for the next release.