Community
Participate
Working Groups
When a .aj aspect file is open and has unsaved changes, it cannot be deleted by right-clicking on it in the Package Explorer and selecting delete. It does work from the Navigator. When I do this, the Confirm Delete dialog pops up asking me if I want to delete the file. When I answer yes, a new dialog (Confirm Delete <2>) pops up, with the following information : Cannot proceed due to the following problems. Found problems /aspectj/be/test/TestAspect.aj is unsaved. No context information available. This does work with .java files, also if they contain aspects. It does not seem to work for non-java files in general (tested with .txt) in the Package Explorer. Should the Package Explorer handle .aj files the same way as .java files and thus allow deleting (especially since this already works in the Navigator), should it in fact allow deleting of all types of files (making this an eclipse bug), or is it correct as is ?
Created attachment 9715 [details] Patch to remove ajdt caused errors Deleting a dirty file from resource view made AJDT throw an exception. This patch prevents AJDT from doing so. All other problems remain. They are in fact eclipse problems and affect all non .java files, not only .aj files. I do not see a workaround for this without changing eclipse itself.
The current behaviour that treats .aj file the same way as all the other non .java files is acceptable, though it would be nice if we could keep the differences between .aj and .java files as small as possible. We might get a fix for that for free in the new code base.
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.
Fixed now.