| Summary: | Replace With on package uses file system hierarchy instead of operating on package | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Jeremy Mack <jmack> |
| Component: | UI | Assignee: | Project Inbox <egit.ui-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | remy.suen, robin.rosenberg, robin |
| Version: | 1.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Jeremy Mack
(In reply to comment #0) > 2. Make a change to > org.eclipse.example.calc.internal.operations/AbstractOperation.java > 3. Open the Project Explorer to src -> org.eclipse.example.calc > 4. Right click on org.eclipse.example.calc > 5. Select Replace With -> Head Revision > 6. Click OK to the dialog box > 7. The changes in AbstractOperation.java will be lost even though they do not > fall under the hierarchy of org.eclipse.example.calc AbstractOperation, at a filesystem level, is nested within the org.eclipse.example.calc folder. When you ask that folder to have its contents replaced, then your AbstractOperation will also be replaced. The "hierarchy" shown in the view is merely a visual representation. If you changed the setting to not show packages as being "flat" then they would be nested like subfolders. What's the API to use for getting the information about packages, considering the EGit is project-type agnostic? We need to be able to iterate both the file system (which I guess is the easy part), but also index and a tree according to the same rules. |