Bug 71933 - Aspects in the default package are shown outside of the package hierarchy
Summary: Aspects in the default package are shown outside of the package hierarchy
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.1.11   Edit
Hardware: PC Windows 2000
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Helen Beeken CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-13 06:58 EDT by gyula.kun-szabo CLA
Modified: 2004-10-25 09:04 EDT (History)
0 users

See Also:


Attachments
Files shown at wrong places (139.70 KB, image/png)
2004-08-13 07:08 EDT, gyula.kun-szabo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gyula.kun-szabo CLA 2004-08-13 06:58:09 EDT
When an aspect is created in the default package, the package explorer shows it 
in a wrong place, outside of the package hierarchy.
(If the aspect is created in a package, it is displayed at the correct place.)
Comment 1 gyula.kun-szabo CLA 2004-08-13 07:08:00 EDT
Created attachment 13942 [details]
Files shown at wrong places

See the location of Main.java, A2.aj, Aspect.as and PertargetAspect.aj.
I think that also the 'Non-Java elements' filter should be modified so that it
leaves .aj files visible when AJDT is installed.
Comment 2 Helen Beeken CLA 2004-10-22 05:49:10 EDT
Some of this has been fixed as a consequence of the java model work in AJDT 
1.2.0M1. The current behaviour is:

- Creating an Aspect in the default package: if the package is not specified 
then, as with classes, the Aspect is put in the default package.

- when the project is converted to a Java project (AJ nature is removed) then 
any .aj files in the default package appear under the project node rather than 
the default package node in the package explorer.

Comment 3 Helen Beeken CLA 2004-10-25 09:04:04 EDT
Hi, I'm closing this bug as fixed because as mentioned in my previous append, 
creating an aspect in teh default package now appears in the correct place 
when viewed in the package explorer.

Moreover, the second part of this bug - that when AJ nature is removed that 
the .aj file should still appear in the default package is not going to be 
fixed because this is down to the JDT moving non-java files out of the default 
package. Moreover, its not recommended to create aspects (or classes) in the 
default package.


Thanks, Helen