| Summary: | [Search]Should use textModel to handle line endings and use setText to generate new file. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Silenio_Quarti |
| Version: | 0.4 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
libing wang
Might be complicated using filter for the partial replacement. Will see if it is doable after I fix other RC2s. Bug 411644 was fixed on the editor side. But we need a better approach from the text model + find.js. We need to use the iterator from the text Model find API, then get all the ranges and ask the replace API to replace all the ranges. After model side is done, we update UI. After talking to Silenio, the range list approach can also be shared by the global search&replace. In the global search we need a subset of the range list, given that user can select which matches are meant to replace or not. Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html |