| Summary: | Removing a file from a project deletes it from disk. | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | cliff.wallach |
| Component: | IDE | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | prakash, remy.suen |
| Version: | 3.6.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
cliff.wallach
(In reply to comment #0) > The IDE "Delete" command must be used in order to remove a file from a project. > This is wrong because it also deletes the file from the disk! Obviously > wrong. Not sure I follow. It is called 'Delete'. When you use it, the file is indeed deleted. How is this "obviously wrong"? (In reply to comment #1) > (In reply to comment #0) > > The IDE "Delete" command must be used in order to remove a file from a project. > > This is wrong because it also deletes the file from the disk! Obviously > > wrong. > Not sure I follow. It is called 'Delete'. When you use it, the file is indeed > deleted. How is this "obviously wrong"? The desired function is to exclude a file from a project. That is, make the file not a part of the project. Not delete it from the disk. (In reply to comment #2) > The desired function is to exclude a file from a project. That is, make the > file not a part of the project. Not delete it from the disk. Exclude in what way? Also note that what you see in the UI may not be reflective of what's on the actual file system (which is probably what the Android runtime will read when an application is actually being run). You can read up on resource filters perhaps that does what you want. In any case, the action is called 'Delete' and not 'Remove'. (In reply to comment #3) > (In reply to comment #2) > > The desired function is to exclude a file from a project. That is, make the > > file not a part of the project. Not delete it from the disk. > Exclude in what way? Also note that what you see in the UI may not be > reflective of what's on the actual file system (which is probably what the > Android runtime will read when an application is actually being run). > You can read up on resource filters perhaps that does what you want. > In any case, the action is called 'Delete' and not 'Remove'. There is no function named "Remove" or "Exclude." The most similar function is "Delete", which does indeed remove the specified file from the project and also deletes it from the disk. I want the "remove file from project" function without the "delete file from disk." For example, lets say I want to replace the image file cat.jpg with dog.jpg. Adding dog.jpg to the project is simple and works. Removing cat.jpg from the project deletes it permanently! Is that not wrong? Shouldn't there be a simple "remove file from project" function that doesn't entail the complex procedure of creating and editing a resource filter? |