Bug 73883 - .aj files appear twice in pack explorer after renaming
Summary: .aj files appear twice in pack explorer after renaming
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Luzius Meisser CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 11:41 EDT by Luzius Meisser CLA
Modified: 2004-09-14 11:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luzius Meisser CLA 2004-09-14 11:41:32 EDT
Sian:

I'm not sure if you have seen this before but if you rename a .aj file (using 
the resource perspective) you still see the old one in the package explorer.  
There are also some errors such as:

Java Model Exception: Java Model Status [TraceMyClasses.aj [in 
tracing.version2 [in src [in Tracing Example]]] does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException
(JavaElement.java:561)
at org.eclipse.ajdt.javamodel.javaelements.AJCompilationUnit.buildStructure
(AJCompilationUnit.java:148)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:183)
at org.eclipse.ajdt.javamodel.javaelements.AJCompilationUnit.generateInfos
(AJCompilationUnit.java:133)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed
(JavaElement.java:572)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo
(JavaElement.java:309)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo
(JavaElement.java:295)
at org.eclipse.ajdt.javamodel.javaelements.AJCompilationUnit.getElementInfo
(AJCompilationUnit.java:93)
at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:250)
at org.eclipse.ajdt.javamodel.javaelements.AJCompilationUnit.getChildren
(AJCompilationUnit.java:312)
at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType
(JavaElement.java:264)
at org.eclipse.jdt.internal.core.CompilationUnit.getTypes
(CompilationUnit.java:822)
at org.eclipse.ajdt.javamodel.javaelements.AJCompilationUnit.getTypes
(AJCompilationUnit.java:317)
at org.eclipse.jdt.internal.corext.refactoring.util.JavaElementUtil.getMainType
(JavaElementUtil.java:85)
at org.eclipse.jdt.ui.actions.UseSupertypeAction.getSingleSelectedType
(UseSupertypeAction.java:114)
...
Comment 1 Luzius Meisser CLA 2004-09-14 11:42:39 EDT
fixed: problem was not updating the package explorer view so it still kept a 
copy of the AJCompilationUnit