Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 256788 - Delete class/interface should not delete the file itself
Summary: Delete class/interface should not delete the file itself
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.0M4   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 10:12 EST by Eden Klein CLA
Modified: 2010-06-11 06:48 EDT (History)
2 users (show)

See Also:


Attachments
Deleted file fix (1.57 KB, patch)
2008-11-27 10:12 EST, Eden Klein CLA
alex.panchenko: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eden Klein CLA 2008-11-27 10:12:02 EST
In the current implementation, if a file contains only a class or an interface and if the user right clicks on it in the scriptexplorer view and choose the the delete action, the file is deleted altogether.
This behavior matches the Java notion of a class/interface and a file, which are highly connected.
In dynamic languages this is not the case.
A file can exists by itself without necessarily containing a class or an interface.
the attached patch fixes the problem.
Comment 1 Eden Klein CLA 2008-11-27 10:12:59 EST
Created attachment 118918 [details]
Deleted file fix

see bug description
Comment 2 Alex Panchenko CLA 2008-11-29 07:39:24 EST
Committed with some extensions