Thanks guys, looked at all the things you suggested, everything seems to be in
order. Project is configured to build automatically, tried cleaning it up a
couple of times, doesn't seem to affect the result. Package and imports are
fine, otherwise it wouldn't compile (?) which doesn't happen. It's only the
markers that are missing. What's baffling is that in the same project they
work for an aspect with the _same_ contents:
package com.citi.gdos.iris.smart.cache;
import org.springmodules.cache.annotations.Cacheable;
public aspect SmartCachingIntroduction {
declare @method: public * *..getFailsFilter(..) :
@Cacheable(modelId="failsFilterCacheModel");
declare @method: public * *..getFailsDualAxisChart(..) :
@Cacheable(modelId="failsDualAxisChartCacheModel");
declare @method: public * *..getFailsByOpsOwner(..) :
@Cacheable(modelId="failsByOpsOwnerGridCacheModel");
declare @method: public * *..getFailsByOpsSummary(..) :
@Cacheable(modelId="failsByOpsSummaryGridCacheModel");
declare @method: public * *..getNostrosFilter(..) :
@Cacheable(modelId="nostrosFilterCacheModel");
declare @method: public * *..getNostrosDualAxisChart(..) :
@Cacheable(modelId="nostrosDualAxisChartCacheModel");
declare @method: public * *..getNostrosByOpsOwner(..) :
@Cacheable(modelId="nostrosByOpsOwnerGridCacheModel");
}
and this is the aspect I wanted to be moved into "package
com.citi.gdos.iris.smart.service.cache;" in the first place.
So now I have 2 exactly the same (content-wise) aspects in the same aspect
enabled java project sitting in 2 different packages, one showing the
annotation markers, and the other isn't.
Maybe something else is amiss?
Thanks again.
Simeon
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew Eisenberg
Sent: Friday, April 16, 2010 4:02 PM
To: [email protected]
Subject: Re: [aspectj-users] 'Annotates' decorations are not visible
Actually, another possibility is that your package statement was not updated
after the move. Have a look to make sure. Or there could be something about
import statements not being updated (but from the look of your sample file,
imports look fine).
On Fri, Apr 16, 2010 at 11:31 AM, Simone Gianni <[email protected]> wrote:
> Hi Simeon,
> the problem you are describing is related to AJDT, the Eclipse plugin
> for AspectJ.
>
> Are you sure that "Project -> Build automatically ..." is active in Eclipse?
> If it isn't for a legitimate reason, have you tried cleaning and
> rebuilding the project (Project -> Clean... then select the project
> and the checkbox "Start a build immediately after clean") ?
>
> Simone
>
>
>
> 2010/4/15 Leyzerzon, Simeon <[email protected]>
>>
>> Hi,
>>
>> I was in the process of refactoring in Eclipse and moved an existing
>> aspect into a different package. The problem is that on a moved
>> aspect now the 'annotates' decoration in the left margin in Eclipse
>> don't show and consequently 'Cross References' view is blank for that
>> aspect. I tried creating a new aspect in a new package and am observing
>> similar behavior.
>> Original aspect shows the decorations fine.
>>
>> How would I enable those decorations on an aspect?
>>
>> Here's my .project file contents:
>>
>> <?xml version="1.0" encoding="UTF-8"?> <projectDescription>
>> <name>Smart</name>
>> <comment></comment>
>> <projects>
>> </projects>
>> <buildSpec>
>> <buildCommand>
>> <name>org.eclipse.ajdt.core.ajbuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>>
>> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> <buildCommand>
>>
>> <name>org.eclipse.wst.validation.validationbuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> </buildSpec>
>> <natures>
>> <nature>org.eclipse.ajdt.ui.ajnature</nature>
>>
>> <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
>> <nature>org.eclipse.jdt.core.javanature</nature>
>> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
>> </natures>
>> </projectDescription>
>>
>> and the aspect:
>>
>> package com.citi.gdos.iris.smart.cache;
>>
>> import org.springmodules.cache.annotations.Cacheable;
>>
>> public aspect SmartCachingIntroduction {
>>
>> declare @method: public * *..getFailsFilter(..) :
>> @Cacheable(modelId="failsFilterCacheModel");
>> declare @method: public * *..getFailsDualAxisChart(..) :
>> @Cacheable(modelId="failsDualAxisChartCacheModel");
>> declare @method: public * *..getFailsByOpsOwner(..) :
>> @Cacheable(modelId="failsByOpsOwnerGridCacheModel");
>> declare @method: public * *..getFailsByOpsSummary(..) :
>> @Cacheable(modelId="failsByOpsSummaryGridCacheModel");
>>
>> declare @method: public * *..getNostrosFilter(..) :
>> @Cacheable(modelId="nostrosFilterCacheModel");
>> declare @method: public * *..getNostrosDualAxisChart(..) :
>> @Cacheable(modelId="nostrosDualAxisChartCacheModel");
>> declare @method: public * *..getNostrosByOpsOwner(..) :
>> @Cacheable(modelId="nostrosByOpsOwnerGridCacheModel");
>> }
>>
>> I'm using AspectJ 1.6
>>
>> Thank you in advance.
>> Simeon
>> _______________________________________________
>> 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
>
>
_______________________________________________
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