Ciao Davide, how does the two projects relate to each other in Eclipse? I suppose the aspect one is in the build path of the RCP one, in that case on the RCP project properties, in the AspectJ build path options, is it inside the aspect path? That should solve the markers in the RCP project, but not necessarily the "adviceDidNotMatch" in the aspect project (I cant remember on RCP, but on plain eclipse project it does not "propagate" the marker "upwards" to the aspect project).
Regarding the adviceDidNotMatch problem, I usually have some unit tests, in the same project, that actually test if the aspects match or not by either checking the real aspect functionality (as a unit test should do), or with another test aspect that advice the main aspect simply checks if the advice is properly applied (in case of aspects that i cannot unit-test otherwise). This has the side effect of visually telling me if the advice matches the test target classes or not. The only other, ugly, option is to import sources of one project into the other (or even between both), and have the AspectJ eclipse plugin to work on a single codebase. This works, but hogs your eclipse, clutters some eclipse features (most notably, F3 and code repository sharing), and cannot be used for more that two/three projects without becoming a nightmare. Hope this helps, Simone 2011/3/10 Davidosky <[email protected]> > Hi everybody, > > I created a dummy RCP project for testing AspectJ and RCP plugin > development. > I have two plugin projects, one containing aspects and the other containing > the "hello World" plugin project. > > I wrote some aspects and they work very well, but i can't see the typical > marker of aspects only in the "hello world" project( where effectively the > aspects make effect) while in the aspect plugin, precisely in the aspects > defined, i see the warning saying that "advice defined in > aspects.AnnotatedLog has not been applied [Xlint:adviceDidNotMatch]". > > Yeah, i know, it is only a visual problem, but it is useful for larger > projects... what is the problem here? > > -- > View this message in context: > http://aspectj.2085585.n4.nabble.com/Eclipse-RCP-and-advices-tp3346745p3346745.html > Sent from the AspectJ - users mailing list archive at Nabble.com. > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users >
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
