Bug 59153 - Cannot delete unsaved .aj files from Package Explorer in eclipse 3.0M8
Summary: Cannot delete unsaved .aj files from Package Explorer in eclipse 3.0M8
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.1.7   Edit
Hardware: PC Linux
: P5 minor (vote)
Target Milestone: 2.0.1   Edit
Assignee: Luzius Meisser CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-19 17:16 EDT by Davy Herben CLA
Modified: 2012-04-03 14:06 EDT (History)
0 users

See Also:


Attachments
Patch to remove ajdt caused errors (975 bytes, patch)
2004-04-20 12:18 EDT, Luzius Meisser CLA
andrew.eisenberg: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davy Herben CLA 2004-04-19 17:16:50 EDT
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 ?
Comment 1 Luzius Meisser CLA 2004-04-20 12:18:04 EDT
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.
Comment 2 Luzius Meisser CLA 2004-07-29 07:14:27 EDT
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.
Comment 3 Eclipse Webmaster CLA 2009-08-30 02:49:46 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.
Comment 4 Andrew Eisenberg CLA 2009-09-24 18:28:12 EDT
Fixed now.