Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAJ only working in top-level RCP/plug-in
https://www.eclipse.org/forums/index.php/mv/msg/21129/67769/#msg_67769
Originally posted by: mailto.mike-wendler.de
Hi there,
I'm having an RCP application consisting of several plug-ins (each in its
own eclipse project). On top of the top-level project a added a 'support'
RCP project which I converted to an AJ project. The application started
from this project runs just fine so project dependencies and compilation
is o.k. and anything.
The problem is that only those aspects work that crosscut classes in this
top-level 'support' project. Aspects defined on classes in the
'lower-level' projects do compile (i.e. the required classes are found
obviously) but the advice do not match. E.g. an aspect 'Test' shows the
warning 'advice in 'aj.Test' has not been applied [XLint:
adviceDidNotMatch]. The cross-references view confirms that.
The 'lower-level' projects (those I eventually want to test/enhance with
aspects) I have converted to AJ projects as well. Are there any other
preconditions for cross-cutting classes in other projects?
project structure:
support (AJ)
- demo (AJ
- framework (AJ)
- ...
Thanks a lot in advance for any hint!
Cheerio, Mike]]>2006-11-16T08:25:45-00:00Re: AJ only working in top-level RCP/plug-in
https://www.eclipse.org/forums/index.php/mv/msg/21129/595326/#msg_595326
By default aspects only apply to types within the same project. There
are mechanisms such as the "aspect path" setting which allow aspects
to be applied across projects. For more info, see the "Managing multiple
projects" section in this article:
Mike Wendler wrote:
> Hi there,
>
> I'm having an RCP application consisting of several plug-ins (each in
> its own eclipse project). On top of the top-level project a added a
> 'support' RCP project which I converted to an AJ project. The
> application started from this project runs just fine so project
> dependencies and compilation is o.k. and anything. The problem is that
> only those aspects work that crosscut classes in this top-level
> 'support' project. Aspects defined on classes in the 'lower-level'
> projects do compile (i.e. the required classes are found obviously) but
> the advice do not match. E.g. an aspect 'Test' shows the warning 'advice
> in 'aj.Test' has not been applied [XLint: adviceDidNotMatch]. The
> cross-references view confirms that. The 'lower-level' projects (those I
> eventually want to test/enhance with aspects) I have converted to AJ
> projects as well. Are there any other preconditions for cross-cutting
> classes in other projects?
>
> project structure:
>
> support (AJ)
> - demo (AJ
> - framework (AJ)
> - ...
>
> Thanks a lot in advance for any hint! Cheerio, Mike
>
>]]>Matt Chapman2006-11-16T10:36:02-00:00Re: AJ only working in top-level RCP/plug-in
https://www.eclipse.org/forums/index.php/mv/msg/21129/67790/#msg_67790
By default aspects only apply to types within the same project. There
are mechanisms such as the "aspect path" setting which allow aspects
to be applied across projects. For more info, see the "Managing multiple
projects" section in this article:
Mike Wendler wrote:
> Hi there,
>
> I'm having an RCP application consisting of several plug-ins (each in
> its own eclipse project). On top of the top-level project a added a
> 'support' RCP project which I converted to an AJ project. The
> application started from this project runs just fine so project
> dependencies and compilation is o.k. and anything. The problem is that
> only those aspects work that crosscut classes in this top-level
> 'support' project. Aspects defined on classes in the 'lower-level'
> projects do compile (i.e. the required classes are found obviously) but
> the advice do not match. E.g. an aspect 'Test' shows the warning 'advice
> in 'aj.Test' has not been applied [XLint: adviceDidNotMatch]. The
> cross-references view confirms that. The 'lower-level' projects (those I
> eventually want to test/enhance with aspects) I have converted to AJ
> projects as well. Are there any other preconditions for cross-cutting
> classes in other projects?
>
> project structure:
>
> support (AJ)
> - demo (AJ
> - framework (AJ)
> - ...
>
> Thanks a lot in advance for any hint! Cheerio, Mike
>
>]]>Matt Chapman2006-11-16T10:36:02-00:00Re: AJ only working in top-level RCP/plug-in
https://www.eclipse.org/forums/index.php/mv/msg/21129/595338/#msg_595338
Originally posted by: mailto.mike-wendler.de
Hi Matt,
thanks a lot for your prompt reply! And for your excellent article which
put me on the track again. Now everything is working as I'd expect and
starts to make fun ;-)
(well, apart from the OutOfMemoryExceptions now and then ...)
Cheerio and have a nice day! Mike]]>2006-11-16T12:22:15-00:00Re: AJ only working in top-level RCP/plug-in
https://www.eclipse.org/forums/index.php/mv/msg/21129/67809/#msg_67809
Originally posted by: mailto.mike-wendler.de
Hi Matt,
thanks a lot for your prompt reply! And for your excellent article which
put me on the track again. Now everything is working as I'd expect and
starts to make fun ;-)
(well, apart from the OutOfMemoryExceptions now and then ...)
Cheerio and have a nice day! Mike]]>2006-11-16T12:22:15-00:00